1 write to ThemeMode
PresentationFramework (1)
System\Windows\ThemeManager.cs (1)
137
window.
ThemeMode
= themeMode;
18 references to ThemeMode
PresentationFramework (18)
System\Windows\Appearance\WindowBackdropManager.cs (1)
35
if(!ThemeManager.IsFluentThemeEnabled && window.
ThemeMode
== ThemeMode.None)
System\Windows\ThemeManager.cs (9)
31
if (window.
ThemeMode
== ThemeMode.None)
56
if (window.
ThemeMode
== ThemeMode.None)
135
if(window.
ThemeMode
!= themeMode)
143
if (!IsFluentThemeEnabled && window.
ThemeMode
== ThemeMode.None)
148
if (window.
ThemeMode
!= ThemeMode.None)
150
useLightColors = GetUseLightColors(window.
ThemeMode
);
250
bool useLightColors = GetUseLightColors(window.
ThemeMode
);
251
AddOrUpdateThemeResources(window.Resources, GetThemeDictionary(window.
ThemeMode
));
265
if (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.
2146
if(value != null &&
ThemeMode
!= ThemeMode.None)
2148
value.MergedDictionaries.Insert(0, ThemeManager.GetThemeDictionary(
ThemeMode
));
2388
if(
ThemeMode
!= ThemeMode.None)
2599
ThemeManager.OnWindowThemeChanged(this, ThemeMode.None,
ThemeMode
);