예제 #1
0
 public static void ChangeTheme(ResourceDictionary r, Accent accent, Theme theme)
 {
     ThemeIsDark = (theme == Theme.Dark);
     var themeResource = (theme == Theme.Light) ? LightResource : DarkResource;
     Util.ApplyResourceDictionary(themeResource, r);
     Util.ApplyResourceDictionary(accent.Resources, r);
 }
예제 #2
0
 public static void ChangeTheme(Window window, Accent accent, Theme theme)
 {
     ChangeTheme(window.Resources, accent, theme);
 }
예제 #3
0
 public static void ChangeTheme(Application app, Accent accent, Theme theme)
 {
     ChangeTheme(app.Resources, accent, theme);
 }