/// <inheritdoc /> public async Task PopToRootAsync(BaseNavigationViewModel vm, bool animate) { var navPage = InstantiateView(vm) as Page; var root = FormsNavigation.NavigationStack.First(); FormsNavigation.InsertPageBefore(navPage, root); await FormsNavigation.PopToRootAsync(animate); }
public async Task PopToRootAsync() { switch (Device.RuntimePlatform) { // TODO Test if still need case Device.UWP: // Fix for Windows and Windows Phone while (NavigationStackDepth > 1) { await FormsNavigation.PopAsync(false); } break; default: await FormsNavigation.PopToRootAsync(false); break; } PrintNavigationStackDepth("PopToRootAsync"); }
public async Task PopToRootAsync() { await FormsNavigation.PopToRootAsync(true); }
public async Task PopToRootAsync(bool animate) { await FormsNavigation.PopToRootAsync(animate); }
public Task PopToRootAsync(bool animated = true) => FormsNavigation.PopToRootAsync(animated);