public override void ViewDidLoad()
		{
			base.ViewDidLoad();

			var introController = (IntroController)Storyboard.InstantiateViewController("IntroController");
			var menuController = (MenuController)Storyboard.InstantiateViewController("MenuController");

			// create a slideout navigation controller with the top navigation controller and the menu view controller
			NavController = new NavController();
			NavController.PushViewController(introController, false);
			SidebarController = new SidebarNavigation.SidebarController(this, NavController, menuController);
			SidebarController.MenuWidth = 220;
			SidebarController.ReopenOnRotate = false;
		}
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var introController = (IntroController)Storyboard.InstantiateViewController("IntroController");
            var menuController  = (MenuController)Storyboard.InstantiateViewController("MenuController");

            // create a slideout navigation controller with the top navigation controller and the menu view controller
            NavController = new NavController();
            NavController.PushViewController(introController, false);
            SidebarController                = new SidebarNavigation.SidebarController(this, NavController, menuController);
            SidebarController.MenuWidth      = 220;
            SidebarController.ReopenOnRotate = false;
        }
Esempio n. 3
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var contentController = (ContentController)Storyboard.InstantiateViewController("ContentController");

            ContentButton.TouchUpInside += (o, e) => {
                if (NavController.TopViewController as ContentController == null)
                {
                    NavController.PushViewController(contentController, false);
                }
                SidebarController.CloseMenu();
            };
        }