public override async Task BackAsync(Nostromo.Interfaces.NavigatorSettings settings) { if (settings.IsModal) { await PopModalAsync(settings.UsePlatformAnimation); } else { var navigationSettings = settings as NavigationSettings; if (navigationSettings != null && navigationSettings.PopToRoot) { if (navigationSettings.NewRoot != null) { await SetNewRootAsync(navigationSettings.NewRoot, settings.UsePlatformAnimation); } else { await PopToRootAsync(settings.UsePlatformAnimation); } } else { await PopAsync(settings.UsePlatformAnimation); } } }
public async override Task NavigateToAsync(IPageViewModel viewmodel, Nostromo.Interfaces.NavigatorSettings settings) { if (settings.IsModal) { await PushModalAsync(viewmodel, settings.IsModal); } else { await PushAsync(viewmodel, settings.UsePlatformAnimation); } }