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

            // create a slideout navigation controller with the top navigation controller and the menu view controller
            NavController = new NavController();
            UIStoryboard      storyboard = UIStoryboard.FromName("MainStoryboard", null);
            iOSViewController iosVC      = storyboard.InstantiateViewController("iOSViewController") as iOSViewController;

            NavController.PushViewController(iosVC, false);
            SidebarController = new SidebarNavigation.SidebarController(this, NavController, new SideMenuController());
            SidebarController.MenuLocation   = SidebarNavigation.MenuLocations.Left;
            SidebarController.MenuWidth      = 220;
            SidebarController.ReopenOnRotate = false;
        }
示例#2
0
 public void OpenInfoVC()
 {
     InformationVC = storyboard.InstantiateViewController("InformationViewController") as InformationViewController;
     NavController.PushViewController(InformationVC, true);
     SidebarController.CloseMenu(true);
 }
示例#3
0
 public void OpenDataVC()
 {
     DataVC = storyboard.InstantiateViewController("DataViewController") as DataViewController;
     NavController.PushViewController(DataVC, true);
     SidebarController.CloseMenu(true);
 }
示例#4
0
 public void OpenSettingsVC()
 {
     SettingsVC = storyboard.InstantiateViewController("SettingsViewController") as SettingsViewController;
     NavController.PushViewController(SettingsVC, true);
     SidebarController.CloseMenu(true);
 }
示例#5
0
 public void OpenGameVC()
 {
     GameVC = storyboard.InstantiateViewController("GameViewController") as GameViewController;
     NavController.PushViewController(GameVC, true);
     SidebarController.CloseMenu(true);
 }