private void OnLightChecked(object sender, RoutedEventArgs e) { if (_isInitialized) { _themeSelectorService.SetTheme(AppTheme.Light); } }
private async Task InitializeAsync() { await Task.CompletedTask; _persistAndRestoreService.RestoreData(); _themeSelectorService.SetTheme(); }
private async Task InitializeAsync() { //^^ //{[{ _themeSelectorService.SetTheme(); //}]} await Task.CompletedTask; }
private void OnSetTheme(object sender, RoutedEventArgs e) { if (sender is FrameworkElement radioButton) { var theme = (AppTheme)Enum.Parse(typeof(AppTheme), radioButton.Tag.ToString()); _themeSelectorService.SetTheme(theme); } }
private async Task InitializeAsync() { await Task.CompletedTask; _persistAndRestoreService.RestoreData(); _themeSelectorService.SetTheme(); _userDataService.Initialize(); _identityService.LoggedIn += OnLoggedIn; _identityService.LoggedOut += OnLoggedOut; }
private void OnSetTheme(string themeName) { var theme = (AppTheme)Enum.Parse(typeof(AppTheme), themeName); _themeSelectorService.SetTheme(theme); }