public override void ViewWillDisappear(bool animated) { base.ViewWillDisappear(animated); NSNotificationCenter.DefaultCenter.RemoveObserver(this); var isNotRemoved = PopupNavigation.PopupStack.Any(e => e == _element); // Close all open pages the Popup, if the main page, on which opened PresentViewControllerAsync, destroyed. if (isNotRemoved) { PopupNavigation.PopAll(); } }
public static void PopAllPopup(this INavigation sender) { PopupNavigation.PopAll(); }