protected virtual void ShowModalCardViewController(UIViewController viewController, MvxBasePresentationAttribute attribute, MvxViewModelRequest request) { viewController.ModalPresentationStyle = UIModalPresentationStyle.Custom; viewController.TransitioningDelegate = FromBottomTransitionDelegate; MasterNavigationController.PresentViewController(viewController, true, null); FromBottomTransitionDelegate.WireToViewController(viewController); }
private void showModalCardViewController(UIViewController viewController, MvxBasePresentationAttribute attribute, MvxViewModelRequest request) { var transitionDelegate = new FromBottomTransitionDelegate( () => ModalViewControllers.Remove(viewController) ); viewController.ModalPresentationStyle = UIModalPresentationStyle.Custom; viewController.TransitioningDelegate = transitionDelegate; getCurrentControllerForPresenting(MasterNavigationController).PresentViewController(viewController, true, null); ModalViewControllers.Add(viewController); transitionDelegate.WireToViewController(viewController); }