/// <summary>
 /// Change app theme
 /// </summary>
 /// <param name="accent">Accent</param>
 /// <param name="style">New theme</param>
 public void ChangeAppStyle(MahApps.Metro.Accent accent, ThemeStyle style)
 {
     // set the accent and theme to the window
     MahApps.Metro.ThemeManager.ChangeAppStyle(Application.Current,
                                               MahApps.Metro.ThemeManager.GetAccent(accent.Name),
                                               MahApps.Metro.ThemeManager.GetAppTheme(style.ToString()));
 }
Esempio n. 2
0
 public GridColor(Grid parent, string color, MahApps.Metro.Accent accent)
     : this(parent, color)
 {
     this.accent = accent;
 }
Esempio n. 3
0
 public StyleChangeEventArgs(MahApps.Metro.Accent accent, MahApps.Metro.AppTheme theme)
 {
     Accent = accent;
     Theme  = theme;
 }