コード例 #1
0
 private void Show(IMvxTouchView view)
 {
     if (view is HomeView)
     {
         _splitView.SetPrimaryView(view);
     }
     else
     {
         _splitView.SetSecondaryView(view);
     }
 }
コード例 #2
0
        public override void Show(IMvxTouchView view)
        {
            if (view is SignInView || view is SignUpView)
            {
                if (_navigationController != null)
                {
                    _window.RootViewController = _navigationController;
                }


                if (view is SignInView)
                {
                    _navigationController.SetViewControllers(new UIViewController[] { view as UIViewController }, true);
                }
                else
                {
                    _navigationController.PushViewController(view as UIViewController, true);
                }
                //TODO : maybe using MasterNavigationController to Push SignUpView into NavigationStack
                //or use base.Show(view) ???
                return;
            }
            else
            {
                if (_splitView != null)
                {
                    _window.RootViewController = _splitView;
                }

                if (view is BaseMenuView)
                {
                    _splitView.SetPrimaryView(view);
                }
                else
                {
                    _splitView.SetSecondaryView(view);
                }
            }
        }