public static async Task PopToRootAsync(this IPageNavigator navigator, bool animated) { await navigator.BackAsync(new NavigationSettings { UsePlatformAnimation = animated, PopToRoot = true, }); }
public static async Task PopModalAsync(this IPageNavigator navigator, bool animated) { await navigator.BackAsync(new NavigatorSettings { UsePlatformAnimation = animated, IsModal = true }); }
public static async Task SetNewRootAsync(this IPageNavigator navigator, IPageViewModel newRoot, bool animated) { await navigator.BackAsync(new NavigationSettings { NewRoot = newRoot, UsePlatformAnimation = animated, PopToRoot = true, }); }