public static void MapPrefersLargeTitles(NavigationViewHandler handler, NavigationPage navigationPage) { if (handler.ViewController is ControlsNavigationController navigationController) { Platform.NavigationPageExtensions.UpdatePrefersLargeTitles(navigationController, navigationPage); } }
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;
int GetNativeNavigationStackCount(NavigationViewHandler navigationViewHandler) => navigationViewHandler.PlatformView.BackStackDepth + 1;