private async void Navigate(object content) { bool animate = Properties.LauncherSettings.Default.AnimatePageTransitions; if (!animate) { await SettingsScreenFrame.Dispatcher.InvokeAsync(() => SettingsScreenFrame.Navigate(content)); return; } int CurrentPageIndex = ViewModels.LauncherModel.Default.CurrentPageIndex_Settings; int LastPageIndex = ViewModels.LauncherModel.Default.LastPageIndex_Settings; if (CurrentPageIndex == LastPageIndex) { return; } ExpandDirection direction; if (CurrentPageIndex > LastPageIndex) { direction = ExpandDirection.Right; } else { direction = ExpandDirection.Left; } await Task.Run(() => BedrockLauncher.Core.Components.PageAnimator.FrameSwipe(SettingsScreenFrame, content, direction)); }
public void NavigateToAboutPage() { ViewModels.LauncherModel.Default.UpdateSettingsPageIndex(3); SettingsScreenFrame.Navigate(aboutPage); }
public void NavigateToAccountsPage() { ViewModels.LauncherModel.Default.UpdateSettingsPageIndex(2); SettingsScreenFrame.Navigate(accountsSettingsPage); }
public void NavigateToVersionsPage() { ViewModels.LauncherModel.Default.UpdateSettingsPageIndex(1); SettingsScreenFrame.Navigate(versionsSettingsPage); }
public void NavigateToGeneralPage() { ViewModels.LauncherModel.Default.UpdateSettingsPageIndex(0); SettingsScreenFrame.Navigate(generalSettingsPage); }
public void NavigateToAboutPage() { SettingsScreenFrame.Navigate(aboutPage); }
public void NavigateToAccountsPage() { SettingsScreenFrame.Navigate(accountsSettingsPage); }
public void NavigateToGeneralPage() { SettingsScreenFrame.Navigate(generalSettingsPage); }
public void NavigateToVersionsPage() { SettingsScreenFrame.Navigate(versionsSettingsPage); }