1 write to ThemeMode
PresentationFramework (1)
System\Windows\ThemeManager.cs (1)
137window.ThemeMode = themeMode;
18 references to ThemeMode
PresentationFramework (18)
System\Windows\Appearance\WindowBackdropManager.cs (1)
35if(!ThemeManager.IsFluentThemeEnabled && window.ThemeMode == ThemeMode.None)
System\Windows\ThemeManager.cs (9)
31if (window.ThemeMode == ThemeMode.None) 56if (window.ThemeMode == ThemeMode.None) 135if(window.ThemeMode != themeMode) 143if (!IsFluentThemeEnabled && window.ThemeMode == ThemeMode.None) 148if (window.ThemeMode != ThemeMode.None) 150useLightColors = GetUseLightColors(window.ThemeMode); 250bool useLightColors = GetUseLightColors(window.ThemeMode); 251AddOrUpdateThemeResources(window.Resources, GetThemeDictionary(window.ThemeMode)); 265if (IsFluentThemeEnabled || window.ThemeMode != ThemeMode.None)
System\Windows\ThemeMode.cs (2)
24/// This is the default value for <see cref="Application.ThemeMode"/> and <see cref="Window.ThemeMode"/> 28/// even if <see cref="Window.ThemeMode"/> is set to <see cref="None">, the Fluent theme will be applied on the window.
System\Windows\Window.cs (6)
557/// These values are predefined in <see cref="ThemeMode"/> struct. 561/// <see cref="ThemeMode"/> and <see cref="Resources"/> are designed to be in sync with each other. 2146if(value != null && ThemeMode != ThemeMode.None) 2148value.MergedDictionaries.Insert(0, ThemeManager.GetThemeDictionary(ThemeMode)); 2388if(ThemeMode != ThemeMode.None) 2599ThemeManager.OnWindowThemeChanged(this, ThemeMode.None, ThemeMode);