예제 #1
0
        public void ZoomHide()
        {
            PropertyChangeBehaviorCollection behaviors = this.GetBehaviors();

            if (behaviors.Count == 0)
            {
                return;
            }
            (behaviors[0] as GalleryMouseOverBehavior)?.ClosePopup();
        }
예제 #2
0
        public bool IsZoomShown()
        {
            PropertyChangeBehaviorCollection behaviors = this.GetBehaviors();

            if (behaviors.Count == 0)
            {
                return(false);
            }
            GalleryMouseOverBehavior mouseOverBehavior = behaviors[0] as GalleryMouseOverBehavior;

            if (mouseOverBehavior == null)
            {
                return(false);
            }
            return(mouseOverBehavior.IsPopupShown);
        }
예제 #3
0
        public void ZoomHide()
        {
            PropertyChangeBehaviorCollection behaviorCollection = this.GetBehaviors();

            if (behaviorCollection.Count == 0)
            {
                return;
            }

            GalleryMouseOverBehavior galleryMouseOverBehavior = behaviorCollection[0] as GalleryMouseOverBehavior;

            if (galleryMouseOverBehavior == null)
            {
                return;
            }
            galleryMouseOverBehavior.ClosePopup();
        }