Exemplo n.º 1
0
 public SettingsViewModel()
 {
     SwitchThemeCommand = new RelayCommand(async() => { await ThemeSelectorService.SwitchThemeAsync(); });
 }
Exemplo n.º 2
0
 public async void SwitchTheme(ElementTheme theme)
 {
     await ThemeSelectorService.SetThemeAsync(theme);
 }
 private SolidColorBrush GetStandardTextColorBrush()
 {
     return(ThemeSelectorService.GetSystemControlForegroundForTheme());
 }
 public SettingsPageViewModel()
 {
     SwitchThemeCommand = new DelegateCommand(async() => { await ThemeSelectorService.SwitchThemeAsync(); });
 }
Exemplo n.º 5
0
        private async Task InitializeAsync()
        {
            await ThemeSelectorService.InitializeAsync();

            await Task.CompletedTask;
        }