1 write to ThemeMode
PresentationFramework (1)
System\Windows\ThemeManager.cs (1)
127Application.Current.ThemeMode = themeMode;
15 references to ThemeMode
PresentationFramework (15)
System\Windows\Application.cs (4)
897if(value != null && ThemeMode != ThemeMode.None) 899value.MergedDictionaries.Insert(0, ThemeManager.GetThemeDictionary(ThemeMode)); 944/// These values are predefined in <see cref="ThemeMode"/> struct 947/// <see cref="ThemeMode"/> and <see cref="Resources"/> are designed to be in sync with each other.
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;
System\Windows\ThemeMode.cs (2)
23/// This is the default value for <see cref="Application.ThemeMode"/> and <see cref="Window.ThemeMode"/> 26/// When <see cref="Application.ThemeMode"/> is not set to <see cref="None"/>,
System\Windows\Window.cs (2)
550/// <see cref="ThemeMode.None"/> - No Fluent theme is loaded. However, if <see cref="Application.ThemeMode"/> is not None, 551/// then the window will appear as defined in <see cref="Application.ThemeMode"/>.