Ejemplo n.º 1
0
        protected virtual void ShowDetailSplitViewController(
            UIViewController viewController,
            MvxDetailSplitViewPresentationAttribute attribute,
            MvxViewModelRequest request)
        {
            if (SplitViewController == null)
            {
                throw new MvxException("Trying to show a detail page without a SplitViewController, this is not possible!");
            }

            SplitViewController.ShowDetailView(viewController, attribute.WrapInNavigationController);
        }
Ejemplo n.º 2
0
        protected virtual bool CloseDetailSplitViewController(IMvxViewModel viewModel, MvxDetailSplitViewPresentationAttribute attribute)
        {
            if (SplitViewController != null && SplitViewController.CloseChildViewModel(viewModel))
            {
                return(true);
            }

            return(true);
        }