Esempio n. 1
0
 public static void MapPrefersLargeTitles(NavigationViewHandler handler, NavigationPage navigationPage)
 {
     if (handler.ViewController is ControlsNavigationController navigationController)
     {
         Platform.NavigationPageExtensions.UpdatePrefersLargeTitles(navigationController, navigationPage);
     }
 }
Esempio n. 2
0
 public static void MapIsNavigationBarTranslucent(NavigationViewHandler handler, NavigationPage navigationPage)
 {
     if (handler.ViewController is ControlsNavigationController navigationController)
     {
         Platform.NavigationPageExtensions.UpdateIsNavigationBarTranslucent(navigationController, navigationPage);
     }
 }
 public ControlsNavigationController(NavigationViewHandler handler, Type navigationBarType, Type toolbarType)
     : base(navigationBarType, toolbarType)
 {
     Delegate = new NavDelegate(this);
     _handler = handler;
 }
 public ControlsNavigationController(NavigationViewHandler handler) : base()
 {
     Delegate = new NavDelegate(this);
     _handler = handler;
 }
 int GetNativeNavigationStackCount(NavigationViewHandler navigationViewHandler) =>
 navigationViewHandler.StackNavigationManager.NavHost.NavController.BackStack.Size() - 1;
Esempio n. 6
0
 int GetNativeNavigationStackCount(NavigationViewHandler navigationViewHandler) =>
 navigationViewHandler.PlatformView.BackStackDepth + 1;