1 write to ThemeMode
PresentationFramework (1)
System\Windows\ThemeManager.cs (1)
146window.ThemeMode = themeMode;
18 references to ThemeMode
PresentationFramework (18)
System\Windows\Appearance\WindowBackdropManager.cs (1)
36if(!ThemeManager.IsFluentThemeEnabled && window.ThemeMode == ThemeMode.None)
System\Windows\ThemeManager.cs (9)
40if (window.ThemeMode == ThemeMode.None) 65if (window.ThemeMode == ThemeMode.None) 144if(window.ThemeMode != themeMode) 152if (!IsFluentThemeEnabled && window.ThemeMode == ThemeMode.None) 157if (window.ThemeMode != ThemeMode.None) 159useLightColors = GetUseLightColors(window.ThemeMode); 259bool useLightColors = GetUseLightColors(window.ThemeMode); 260AddOrUpdateThemeResources(window.Resources, GetThemeDictionary(window.ThemeMode)); 274if (IsFluentThemeEnabled || window.ThemeMode != ThemeMode.None)
System\Windows\ThemeMode.cs (2)
36/// This is the default value for <see cref="Application.ThemeMode"/> and <see cref="Window.ThemeMode"/> 40/// 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)
578/// These values are predefined in <see cref="ThemeMode"/> struct. 582/// <see cref="ThemeMode"/> and <see cref="Resources"/> are designed to be in sync with each other. 2165if(value != null && ThemeMode != ThemeMode.None) 2167value.MergedDictionaries.Insert(0, ThemeManager.GetThemeDictionary(ThemeMode)); 2409if(ThemeMode != ThemeMode.None) 2621ThemeManager.OnWindowThemeChanged(this, ThemeMode.None, ThemeMode);