public override bool SelectItem (object item) { var f = new StorageForm (); f.NavigationItem.RightBarButtonItem = new UIKit.UIBarButtonItem (UIKit.UIBarButtonSystemItem.Done, (s, e) => { if (f != null && f.PresentingViewController != null) { f.DismissViewController (true, null); } }); if (this.Form.NavigationController != null) { this.Form.NavigationController.PushViewController (f, true); } return false; }
public override bool SelectItem(object item) { var f = new StorageForm(); f.NavigationItem.RightBarButtonItem = new UIKit.UIBarButtonItem(UIKit.UIBarButtonSystemItem.Done, (s, e) => { if (f != null && f.PresentingViewController != null) { f.DismissViewController(true, null); } }); if (this.Form.NavigationController != null) { this.Form.NavigationController.PushViewController(f, true); } return(false); }
public void ShowStorage (UIViewController controller) { if (DismissSheetsAndPopovers ()) { return; } var pform = new StorageForm (); var n = new UINavigationController (pform); n.NavigationBar.BarStyle = Theme.NavigationBarStyle; n.ModalPresentationStyle = UIModalPresentationStyle.FormSheet; controller.PresentViewController (n, true, null); }