public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			window = new UIWindow (UIScreen.MainScreen.Bounds);

			MenuViewController menuViewController = new MenuViewController(UITableViewStyle.Grouped);
			DetailsViewController detailsViewController = new DetailsViewController();
			UINavigationController navController = new UINavigationController (detailsViewController);

			SlideMenuController slideMenuViewController = new SlideMenuController();
			slideMenuViewController.SetContentViewController (navController);
			slideMenuViewController.SetLeftMenuViewController (menuViewController);

			UINavigationController cont = new UINavigationController (new MenuViewController (UITableViewStyle.Plain));

			slideMenuViewController.SetRightMenuViewController (cont);

			if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Pad) {
				slideMenuViewController.WidthOfPortraitContentViewVisible = 300f;
				slideMenuViewController.WidthOfLandscapeContentViewVisible = 556f;
			}

			window.RootViewController = slideMenuViewController;

			window.BackgroundColor = UIColor.White;
			window.MakeKeyAndVisible ();			
			return true;
		}
예제 #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            window = new UIWindow(UIScreen.MainScreen.Bounds);

            MenuViewController     menuViewController    = new MenuViewController(UITableViewStyle.Grouped);
            DetailsViewController  detailsViewController = new DetailsViewController();
            UINavigationController navController         = new UINavigationController(detailsViewController);

            SlideMenuController slideMenuViewController = new SlideMenuController();

            slideMenuViewController.SetContentViewController(navController);
            slideMenuViewController.SetLeftMenuViewController(menuViewController);

            UINavigationController cont = new UINavigationController(new MenuViewController(UITableViewStyle.Plain));

            slideMenuViewController.SetRightMenuViewController(cont);

            if (UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Pad)
            {
                slideMenuViewController.WidthOfPortraitContentViewVisible  = 300f;
                slideMenuViewController.WidthOfLandscapeContentViewVisible = 556f;
            }

            window.RootViewController = slideMenuViewController;

            window.BackgroundColor = UIColor.White;
            window.MakeKeyAndVisible();
            return(true);
        }
예제 #3
0
		public override bool FinishedLaunching (UIApplication app, NSDictionary options)
		{
			window = new UIWindow (UIScreen.MainScreen.Bounds);

			MenuViewController menuViewController = new MenuViewController(UITableViewStyle.Grouped);
			DetailsViewController detailsViewController = new DetailsViewController();

			SlideMenuController slideMenuViewController = new SlideMenuController(menuViewController, detailsViewController);

			window.RootViewController = slideMenuViewController;

			window.BackgroundColor = UIColor.White;
			window.MakeKeyAndVisible ();			
			return true;
		}