public void ZoomHide() { PropertyChangeBehaviorCollection behaviors = this.GetBehaviors(); if (behaviors.Count == 0) { return; } (behaviors[0] as GalleryMouseOverBehavior)?.ClosePopup(); }
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); }
public void ZoomHide() { PropertyChangeBehaviorCollection behaviorCollection = this.GetBehaviors(); if (behaviorCollection.Count == 0) { return; } GalleryMouseOverBehavior galleryMouseOverBehavior = behaviorCollection[0] as GalleryMouseOverBehavior; if (galleryMouseOverBehavior == null) { return; } galleryMouseOverBehavior.ClosePopup(); }