Inheritance: UIViewController
        private static UIBarButtonItem CreateBarButtonItem(SidebarController sidebarController, IMvxSidebarMenu mvxSidebarMenu = null)
        {
            UIBarButtonItem barButtonItem;

            if (mvxSidebarMenu != null)
            {
                barButtonItem = new UIBarButtonItem(mvxSidebarMenu.MenuButtonImage
                    , UIBarButtonItemStyle.Plain
                    , (sender, args) =>
                    {
                        sidebarController.MenuWidth = mvxSidebarMenu.MenuWidth;
                        sidebarController.ViewWillAppear(false);
                        sidebarController.ToggleMenu();
                    });
            }
            else
            {
                barButtonItem = new UIBarButtonItem("Menu"
                    , UIBarButtonItemStyle.Plain
                    , (sender, args) =>
                    {
                        sidebarController.ToggleMenu();
                    });
            }

            return barButtonItem;
        }
		public override void ViewDidLoad()
		{
			base.ViewDidLoad();

			// create a slideout navigation controller with the top navigation controller and the menu view controller
			SidebarController = new SidebarController(this, new IntroController(), new SideMenuController());
			SidebarController.MenuLocation = SidebarController.MenuLocations.Left;
		}
        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;
        }
        partial void BtnMenu_Activated(UIBarButtonItem sender)
        {
            var introController = (ViewController_Home)Storyboard.InstantiateViewController("ViewController_Home");
            var menuController  = (ViewController_Menu)Storyboard.InstantiateViewController("ViewController_Menu");

            SidebarController                = new SidebarNavigation.SidebarController(this, introController, menuController);
            SidebarController.MenuWidth      = 220;
            SidebarController.ReopenOnRotate = false;
            SidebarController.MenuLocation   = SidebarController.MenuLocations.Left;

            //if (SidebarController.IsOpen == false)
            //{
            SidebarController.ToggleMenu();
        }
		public override void ViewDidLoad()
		{
			base.ViewDidLoad();

			var introController = (TabBarController)Storyboard.InstantiateViewController("TabBarController");
			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;
		}
Example #6
0
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     customnav = new TSCustomNavController();
     //if (UserInterfaceIsPhone)
     customnav.PushViewController(new TSSettingsView(), false);
     //else
     //	customnav.PushViewController (new TSSplitVCIPad (), false);
     SidebarController = new SidebarNavigation.SidebarController(this, customnav, new TSLeftSideMenuController());
     SidebarController.MenuLocation      = SidebarNavigation.SidebarController.MenuLocations.Left;
     SidebarController.FlingVelocity     = 300f;
     SidebarController.MenuWidth         = (int)TSPhoneSpec.MenuWidth;
     customnav.MenuButton.TouchUpInside += (sender, e) => {
         SidebarController.ToggleMenu();
     };
 }
Example #7
0
 public override void ViewDidLoad()
 {
     base.ViewDidLoad ();
     customnav = new TSCustomNavController ();
     //if (UserInterfaceIsPhone)
     customnav.PushViewController (new TSLoginVC (), false);
     //else
     //				customnav.PushViewController (new TSSplitVCIPad (), false);
     SidebarController = new SidebarNavigation.SidebarController(this, customnav, new TSLeftSideMenuController ());
     SidebarController.MenuLocation = SidebarNavigation.SidebarController.MenuLocations.Left;
     SidebarController.FlingVelocity = 300f;
     SidebarController.MenuWidth = (int)TSPhoneSpec.MenuWidth;
     customnav.MenuButton.TouchUpInside += (sender, e) => {
         SidebarController.ToggleMenu ();
     };
 }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            AppDelegate appDelegate = (AppDelegate)UIApplication.SharedApplication.Delegate;


            if (appDelegate.Window.Frame.Size.Width == 414)
            {
                appDelegate.storyboard = "Phone6PluS";
            }
            else if (appDelegate.Window.Frame.Size.Width == 375)
            {
                appDelegate.storyboard = "Phone";
            }
            else if (appDelegate.Window.Frame.Size.Width == 320 && appDelegate.Window.Frame.Size.Height == 568)
            {
                appDelegate.storyboard = "Phone5";
            }
            else
            {
                appDelegate.storyboard = "Phone5";
            }


            //appDelegate.storyboard = "Phone";

            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      = 260;
            SidebarController.ReopenOnRotate = false;
            SidebarController.MenuLocation   = SidebarController.MenuLocations.Left;

            //SidebarController.Disabled = true;

            appDelegate.SidebarController = SidebarController;


            NavController.NavigationBar.BarTintColor = UIColor.Clear.FromHexString("#ef2e24", 1.0f);
            NavController.NavigationBar.TintColor    = UIColor.White;
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            View.BackgroundColor = LettuceColor.BoyBlue;

            // create a slideout navigation controller with the top navigation controller and the menu view controller
            NavController = new NavController();
            NavController.NavigationBar.BackgroundColor = LettuceColor.BoyBlue;
            SidebarController = new SidebarNavigation.SidebarController(this, NavController, new SideMenuController());
            SidebarController.MenuWidth = 220;
            SidebarController.ReopenOnRotate = false;
            SidebarController.MenuLocation = SidebarNavigation.SidebarController.MenuLocations.Left;
            NavController.PushViewController (HomeController , false);
            NavController.PushViewController (new InitialLoadViewController (), false);
        }