Exemplo n.º 1
0
        public virtual bool WillFinishLaunching(UIApplication application, MonoTouch.Foundation.NSDictionary launchOptions)
        {
            UIViewController leftSideDrawerViewController  = new MMExampleLeftSideDrawerViewController();
            UIViewController centerViewController          = new MMExampleCenterTableViewController();
            UIViewController rightSideDrawerViewController = new UIViewController();             // new MMExampleRightSideDrawerViewController ();

            UINavigationController navigationController = new MMNavigationController();

            navigationController.ViewControllers       = new UIViewController[] { centerViewController };
            navigationController.RestorationIdentifier = "MMExampleCenterNavigationControllerRestorationKey";

            UINavigationController leftSideNavController = new MMNavigationController();

            leftSideNavController.ViewControllers       = new UIViewController[] { leftSideDrawerViewController };
            leftSideNavController.RestorationIdentifier = "MMExampleLeftNavigationControllerRestorationKey";

            this.DrawerController = new MMDrawerController.MMDrawerController();
            DrawerController.CenterViewController     = navigationController;
            DrawerController.LeftDrawerViewController = leftSideNavController;

            DrawerController.RestorationIdentifier      = "MMDrawer";
            DrawerController.MaximumRightDrawerWidth    = 200.0F;
            DrawerController.OpenDrawerGestureModeMask  = MMOpenDrawerGestureMode.BezelPanningCenterView;
            DrawerController.CloseDrawerGestureModeMask = MMCloseDrawerGestureMode.BezelPanningCenterView;

            //DrawerController.DrawerVisualStateBlock = new Action (DrawerAction (DrawerController, new MMDrawerSide(), 100F));

            this.Window = new UIWindow(UIScreen.MainScreen.Bounds);
            UIColor tintColor = new UIColor(29.0F / 255.0F, 173.0F / 255.0F, 234.0F / 255.0F, 1.0F);

            this.Window.TintColor = tintColor;

            this.Window.RootViewController = this.DrawerController;

            return(true);
        }
 public override void VideoDidFinish(string hook, MonoTouch.Foundation.NSDictionary userCookies)
 {
     Console.WriteLine("Finished Video -- Hook: {0}", hook);
 }
Exemplo n.º 3
0
 public bool FinishedLaunching(MonoTouch.UIKit.UIApplication application, MonoTouch.Foundation.NSDictionary launchOptions)
 {
     this.Window.BackgroundColor = UIColor.White;
     this.Window.MakeKeyAndVisible();
     return(true);
 }