public async Task RedirectLoginPageAsync() { var frame = new Frame(); NavigationService.Frame = frame; Window.Current.Content = frame; await ThemeSelectorService.SetRequestedThemeAsync(); NavigationService.Navigate <Views.LogInPage>(); }
private async void OnLoggedIn(object sender, EventArgs e) { if (_shell?.Value != null) { Window.Current.Content = _shell.Value; } else { var frame = new Frame(); Window.Current.Content = frame; NavigationService.Frame = frame; } await ThemeSelectorService.SetRequestedThemeAsync(); await HandleActivationAsync(_lastActivationArgs); }
private async Task StartupAsync() { await ThemeSelectorService.SetRequestedThemeAsync(); }