Пример #1
0
 public static void SetAppTheme(ElementTheme theme)
 {
     localSettings.Values["AppTheme"] = theme.ToString("g");
     ApplyAppTheme(theme);
     AppThemeChanged?.Invoke(theme);
     SettingsChanged?.Invoke("AppTheme", theme);
 }
 private void _appWatcher_EventArrived(object sender, EventArrivedEventArgs e)
 => AppThemeChanged?.Invoke(null, new ThemeChangedEventArg(GetTheme(ThemeType.App)));