예제 #1
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();
     };
 }
예제 #2
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 ();
     };
 }