Ejemplo n.º 1
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            this.controller               = new JASidePanelController();
            this.controller.ShowShadow    = true;
            this.controller.ShadowRadius  = 50f;
            this.controller.ShadowOpacity = 0.5f;
            //this.controller.ShowStyling = false;
            this.controller.ShouldDelegateAutorotateToVisiblePanel = false;
            this.controller.LeftPanel = new UIViewController()
            {
                View = new UIView
                {
                    BackgroundColor = UIColor.Orange
                }
            };

            this.controller.CenterPanel       = new UINavigationController(new MyViewController());
            this.controller.LeftBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Camera, (sender, e) => this.controller.ToggleLeftPanel());

            ((UINavigationController)this.controller.CenterPanel).ViewControllers[0].NavigationItem.RightBarButtonItem = new UIBarButtonItem(UIBarButtonSystemItem.Cancel, (sender, e) => { });

            this.Window = new UIWindow(UIScreen.MainScreen.Bounds);
            this.Window.RootViewController = controller;
            this.Window.MakeKeyAndVisible();
            return(true);
        }
Ejemplo n.º 2
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method

            // set up the actual view controller here
            viewController = new JASidePanelController();
            viewController.ShouldDelegateAutorotateToVisiblePanel = false;

            // set up the controller panes here
            viewController.CenterPanel = new UINavigationController(new RootViewController());
            viewController.RightPanel  = new SideBarController();


            viewController.AllowRightOverpan = false;
            // off we go
            Window.RootViewController = viewController;
            Window.MakeKeyAndVisible();


            // Code to start the Xamarin Test Cloud Agent
                        #if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
                        #endif

            return(true);
        }
Ejemplo n.º 3
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            window = new UIWindow(UIScreen.MainScreen.Bounds);

            viewController = new JASidePanelController();
            viewController.ShouldDelegateAutorotateToVisiblePanel = false;

            viewController.LeftPanel   = new JALeftViewController();
            viewController.CenterPanel = new UINavigationController(new JACenterViewController());
            viewController.RightPanel  = new JARightViewController();

            window.RootViewController = viewController;
            window.MakeKeyAndVisible();

            return(true);
        }
Ejemplo n.º 4
0
 public AppDelegate()
 {
     jaSidePanelController = new JASidePanelController();
 }
Ejemplo n.º 5
0
 public JaSidePanelsMvxPresenter(UIApplicationDelegate applicationDelegate, UIWindow window) :
     base(applicationDelegate, window)
 {
     _jaSidePanelController = new JASidePanelController();
     _activePanel           = PanelEnum.Center;
 }