public static MauiFragmentNavDestination AddDestination( IPage page, NavigationPageHandler navigationPageHandler, NavGraph navGraph, FragmentNavigator navigator) { var destination = new MauiFragmentNavDestination(navigator, page, navigationPageHandler); navGraph.AddDestination(destination); return(destination); }
public MauiFragmentNavDestination(Navigator fragmentNavigator, IPage page, NavigationPageHandler navigationPageHandler) : base(fragmentNavigator) { _ = page ?? throw new ArgumentNullException(nameof(page)); _ = navigationPageHandler ?? throw new ArgumentNullException(nameof(navigationPageHandler)); SetClassName(Java.Lang.Class.FromType(typeof(NavHostPageFragment)).CanonicalName); if (!Pages.ContainsKey(page)) { Id = global::Android.Views.View.GenerateViewId(); Pages.Add(page, Id); } Id = Pages[page]; this.Page = page; this.NavigationPageHandler = navigationPageHandler; }
public ControlsNavigationController(NavigationPageHandler handler, Type navigationBarType, Type toolbarType) : base(navigationBarType, toolbarType) { Delegate = new NavDelegate(this); _handler = handler; }
public ControlsNavigationController(NavigationPageHandler handler) : base() { Delegate = new NavDelegate(this); _handler = handler; }