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