public void PresentationControllerDidDismiss(UIPresentationController presentationController) { if (DidDismiss != null) { DidDismiss(presentationController); } }
public void DidDismiss(UIPresentationController _) { var window = (_modal.VirtualView as Page)?.Window; if (window?.Page is Shell shell) { // The modal page might have a NavigationPage so it's not enough to just send // GotoAsync(..) we need build up what the uri will be once the last modal page is removed // and then submit that to shell var modalStack = new List <Page>(shell.CurrentItem.CurrentItem.Navigation.ModalStack); if (modalStack.Count > 0) { modalStack.RemoveAt(modalStack.Count - 1); } var result = ShellNavigationManager.GetNavigationParameters( shell.CurrentItem, shell.CurrentItem.CurrentItem, shell.CurrentItem.CurrentItem.CurrentItem, shell.CurrentItem.CurrentItem.Stack, modalStack); shell.NavigationManager.GoToAsync(result).FireAndForget(); } else { ((Page)_modal.VirtualView).Navigation.PopModalAsync(false).FireAndForget(); } }
public void PresentationControllerWillDismiss(UIPresentationController presentationController) { if (WillDismiss != null) { WillDismiss(presentationController); } }
public override UIPresentationController GetPresentationControllerForPresentedViewController ( UIViewController presentedViewController, UIViewController presentingViewController, UIViewController sourceViewController) { presentationController = new CoolPresentationController (presentedViewController, presentingViewController); return presentationController; }
public override UIPresentationController GetPresentationControllerForPresentedViewController( UIViewController presentedViewController, UIViewController presentingViewController, UIViewController sourceViewController) { presentationController = new CoolPresentationController(presentedViewController, presentingViewController); return(presentationController); }
public bool PresentationControllerShouldDismiss(UIPresentationController presentationController) { if (ShouldDismiss != null) { return(ShouldDismiss(presentationController)); } else { return(true); // view should be dismissible by default } }
public UIKit.UIViewController GetViewControllerForAdaptivePresentation (UIPresentationController controller, UIModalPresentationStyle style) { /* Load and return the adapted view controller from the Detail storyboard. That storyboard is stored within the same bundle that contains this class. */ var adaptableFormSheetSegueBundle = NSBundle.FromClass (new Class (typeof(AdaptableFormSheetSegue))); return UIStoryboard.FromName ("Detail", adaptableFormSheetSegueBundle).InstantiateViewController ("Adapted"); }
public UIKit.UIViewController GetViewControllerForAdaptivePresentation(UIPresentationController controller, UIModalPresentationStyle style) { /* * Load and return the adapted view controller from the Detail storyboard. * That storyboard is stored within the same bundle that contains this * class. */ var adaptableFormSheetSegueBundle = NSBundle.FromClass(new Class(typeof(AdaptableFormSheetSegue))); return(UIStoryboard.FromName("Detail", adaptableFormSheetSegueBundle).InstantiateViewController("Adapted")); }
public UIViewController GetViewControllerForAdaptivePresentation(UIPresentationController controller, UIModalPresentationStyle style) { var navController = new UINavigationController(controller.PresentedViewController); if (navController != null) { var closeText = GetPopoverCloseText(navController.TopViewController); doneItem = new UIBarButtonItem(closeText, UIBarButtonItemStyle.Done, null); doneItem.Clicked += DoneTapped; navController.TopViewController.NavigationItem.RightBarButtonItem = doneItem; } return(navController); }
public override void DidDismiss(UIPresentationController controller) => _taskCompletionSource.SetResult(null);
public UIModalPresentationStyle GetAdaptivePresentationStyle(UIPresentationController controller, UITraitCollection traitCollection) { return(UIModalPresentationStyle.None); }
public async void DidDismiss(UIPresentationController presentationController) { await Application.Current.NavigationProxy.PopModalAsync(false); }
public override void DidDismiss(UIPresentationController presentationController) => PickHandler?.Invoke(null);
public override UIModalPresentationStyle GetAdaptivePresentationStyle( UIPresentationController forPresentationController) => UIModalPresentationStyle.None;
public override void DidDismiss(UIPresentationController presentationController) { _dismissModal(); }
public override void DidDismiss(UIPresentationController presentationController) { ActivityMediator.Instance.Cancel(); }
public UIModalPresentationStyle GetAdaptivePresentationStyle(UIPresentationController forPresentationController) { return(UIModalPresentationStyle.FullScreen); }
public override void DidDismiss(UIPresentationController presentationController) { _presenter.ClosedModalViewController(_viewController, _attribute); }
public static UIViewController GetAdaptivePresentationStyle(IUIAdaptivePresentationControllerDelegate This, UIPresentationController controller, UIModalPresentationStyle style) { return null; }
public virtual UIViewController GetAdaptivePresentationStyle(UIPresentationController controller, UIModalPresentationStyle style) { return null; }
public override UIModalPresentationStyle GetAdaptivePresentationStyle(UIPresentationController forPresentationController) { return(_getAdaptivePresentationStyle(forPresentationController)); }
public override UIViewController GetViewControllerForAdaptivePresentation(UIPresentationController controller, UIModalPresentationStyle style) { return(new UINavigationController(controller.PresentedViewController)); }
public override void DidDismiss(UIPresentationController presentationController) { _viewController.TableView.ReloadData(); }
public UIModalPresentationStyle GetAdaptivePresentationStyle(UIPresentationController controller, UITraitCollection traitCollection) { return(traitCollection.HorizontalSizeClass == UIUserInterfaceSizeClass.Compact ? UIModalPresentationStyle.FullScreen : UIModalPresentationStyle.FormSheet); }
public UIModalPresentationStyle GetAdaptivePresentationStyle (UIPresentationController controller, UITraitCollection traitCollection) { return traitCollection.HorizontalSizeClass == UIUserInterfaceSizeClass.Compact ? UIModalPresentationStyle.FullScreen : UIModalPresentationStyle.FormSheet; }
public override bool ShouldDismiss(UIPresentationController presentationController) { return(true); }
public UIModalPresentationStyle GetAdaptivePresentationStyle(UIPresentationController controller) { return(UIModalPresentationStyle.None); }
public void DidDismiss(UIPresentationController presentationController) { ReplSceneDelegate.Instance?.SetActiveScreen(this); }
public override UIModalPresentationStyle GetAdaptivePresentationStyle(UIPresentationController controller, UITraitCollection traitCollection) => UIModalPresentationStyle.None;
public override void DidDismiss(UIPresentationController presentationController) { _taskCompletionSource.TrySetResult(Array.Empty <SampleItem>()); }
public void DidDismiss(UIPresentationController presentationController) { closedAction.Invoke(); }
UIModalPresentationStyle AdaptivePresentationStyleForPresentationController (UIPresentationController controller) { return UIModalPresentationStyle.None; }
public override void DidDismiss(UIPresentationController presentationController) { dismissHandler?.Invoke(); dismissHandler = null; }
public override void DidDismiss(UIPresentationController presentationController) { DismissModalAction?.Invoke(); }