Beispiel #1
0
        private void GoToMenu(object o)
        {
            var vc = new MenuViewController();
            var slideoutController = new SlideoutNavigationController();

            slideoutController.MenuViewController = new MenuNavigationController(vc, slideoutController);
            (UIApplication.SharedApplication.Delegate as AppDelegate).Do(y => y.Presenter.SlideoutNavigationController = slideoutController);
            vc.ViewModel.GoToDefaultTopView.Execute(null);
            slideoutController.ModalTransitionStyle = UIModalTransitionStyle.CrossDissolve;
            PresentViewController(slideoutController, true, null);
        }
        private void GoToMenu()
        {
            var vc = new MenuViewController();
            var slideoutController = new SlideoutNavigationController();

            slideoutController.MenuViewController = new MenuNavigationController(vc, slideoutController);

            var appDelegate = UIApplication.SharedApplication.Delegate as AppDelegate;

            if (appDelegate != null)
            {
                appDelegate.Presenter.SlideoutNavigationController = slideoutController;
            }

            var openButton = new UIBarButtonItem {
                Image = Images.Buttons.ThreeLinesButton
            };
            var mainNavigationController = new MainNavigationController(GetInitialMenuViewController(), slideoutController, openButton);

            slideoutController.SetMainViewController(mainNavigationController, false);

            slideoutController.ModalTransitionStyle = UIModalTransitionStyle.CrossDissolve;
            PresentViewController(slideoutController, true, null);
        }
Beispiel #3
0
 public EditSource(MenuViewController dvc)
     : base(dvc)
 {
     _parent = new WeakReference <MenuViewController>(dvc);
 }