Example #1
0
        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);
        }
Example #2
0
 private void ChangeTheme(object sender, RoutedEventArgs e)
 {
     SystemThemeHelper.SetTheme("aero", "normalcolor");
 }