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; }
public void OpenInfoVC() { InformationVC = storyboard.InstantiateViewController("InformationViewController") as InformationViewController; NavController.PushViewController(InformationVC, true); SidebarController.CloseMenu(true); }
public void OpenDataVC() { DataVC = storyboard.InstantiateViewController("DataViewController") as DataViewController; NavController.PushViewController(DataVC, true); SidebarController.CloseMenu(true); }
public void OpenSettingsVC() { SettingsVC = storyboard.InstantiateViewController("SettingsViewController") as SettingsViewController; NavController.PushViewController(SettingsVC, true); SidebarController.CloseMenu(true); }
public void OpenGameVC() { GameVC = storyboard.InstantiateViewController("GameViewController") as GameViewController; NavController.PushViewController(GameVC, true); SidebarController.CloseMenu(true); }