public static void SetSystemTheme(string name) { var a = name.Split('.'); string themename = a[0]; string colorname = "NormalColor"; if (a.Length >= 2) { colorname = a[1]; } if (themename.ToLower() == "classic") { colorname = string.Empty; } SystemThemeHelper.SetTheme(themename, colorname); }
private void ChangeTheme(object sender, RoutedEventArgs e) { SystemThemeHelper.SetTheme("aero", "normalcolor"); }