Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        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);
        }