コード例 #1
0
        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();
            }
        }
コード例 #2
0
 public static void PopAllPopup(this INavigation sender)
 {
     PopupNavigation.PopAll();
 }