/// <summary>
 /// Change app accent
 /// </summary>
 /// <param name="accent">New accent</param>
 /// <param name="theme">Theme</param>
 public void ChangeAppStyle(ThemeAccent accent, MahApps.Metro.AppTheme theme)
 {
     // set the accent and theme to the window
     MahApps.Metro.ThemeManager.ChangeAppStyle(Application.Current,
                                               MahApps.Metro.ThemeManager.GetAccent(accent.ToString()),
                                               MahApps.Metro.ThemeManager.GetAppTheme(theme.Name));
 }
Beispiel #2
0
 public StyleChangeEventArgs(MahApps.Metro.Accent accent, MahApps.Metro.AppTheme theme)
 {
     Accent = accent;
     Theme  = theme;
 }