示例#1
0
        public MenuNavigationPresenter(IMvxApplicationDelegate applicationDelegate, UIWindow window)
            : base(applicationDelegate, window)
        {
            _scheduledViewControllers = new List <MvxViewModelRequest>();

            MenuNavigationController = new MenuNavigationController();
        }
示例#2
0
        protected virtual void SetupFlyoutNavigationController(MenuNavigationController flyoutController)
        {
            flyoutController.View.BackgroundColor = Theme.ColorPalette.Background.ToUIColor();
            flyoutController.LayerShadowing       = true;

            flyoutController.LeftMenuNavigationController.View.BackgroundColor = Theme.ColorPalette.BackgroundMenu.ToUIColor();
            if (!flyoutController.LeftMenuNavigationController.View.Subviews.IsNullOrEmpty())
            {
                flyoutController.LeftMenuNavigationController.View.Subviews[0].BackgroundColor = Theme.ColorPalette.BackgroundMenu.ToUIColor();
            }

            flyoutController.RightMenuNavigationController.View.BackgroundColor = Theme.ColorPalette.BackgroundMenu.ToUIColor();
            if (!flyoutController.RightMenuNavigationController.View.Subviews.IsNullOrEmpty())
            {
                flyoutController.RightMenuNavigationController.View.Subviews[0].BackgroundColor = Theme.ColorPalette.BackgroundMenu.ToUIColor();
            }
            flyoutController.RightMenuIgnoreOpenSwype = true;

            flyoutController.TopNavigationController.View.BackgroundColor = Theme.ColorPalette.Background.ToUIColor();
            if (!flyoutController.TopNavigationController.View.Subviews.IsNullOrEmpty())
            {
                flyoutController.TopNavigationController.View.Subviews[0].BackgroundColor = Theme.ColorPalette.Background.ToUIColor();
            }
            flyoutController.TopNavigationController.NavigationBar.SetupStyle(Theme.ControlPalette.NavigationBar);

            flyoutController.MenuSlidesWithTopView = ThemeConfig.FlyoutController.MenuSlidesWithTopView;

            if (flyoutController.TopNavigationController.NavigationBar.TopItem != null)
            {
                flyoutController.TopNavigationController.NavigationBar.TopItem.SetLeftBarButtonItem(
                    new UIBarButtonItem(
                        ImageCache.GetImage(ThemeConfig.NavBarMenuImage.Path),
                        UIBarButtonItemStyle.Done,
                        (s, e) => MenuNavigationController.ShowLeftMenu()),
                    false);
            }
        }
 public SlideoutPanDelegate(UIView view, MenuNavigationController controller)
 {
     _view       = view;
     _controller = controller;
 }