1 write to ThemeMode
PresentationFramework (1)
System\Windows\ThemeManager.cs (1)
127Application.Current.ThemeMode = themeMode;
9 references to ThemeMode
PresentationFramework (9)
System\Windows\Application.cs (2)
897if(value != null && ThemeMode != ThemeMode.None) 899value.MergedDictionaries.Insert(0, ThemeManager.GetThemeDictionary(ThemeMode));
System\Windows\ThemeManager.cs (7)
23bool useLightColors = GetUseLightColors(Application.Current.ThemeMode); 25FluentThemeState newFluentThemeState = new FluentThemeState(Application.Current.ThemeMode.Value, useLightColors); 29AddOrUpdateThemeResources(Application.Current.Resources, GetThemeDictionary(Application.Current.ThemeMode)); 125if (Application.Current.ThemeMode != themeMode) 157useLightColors = GetUseLightColors(Application.Current.ThemeMode); 270bool useLightColors = GetUseLightColors(Application.Current.ThemeMode); 324return Application.Current.ThemeMode != ThemeMode.None;