1 write to ThemeMode
PresentationFramework (1)
System\Windows\ThemeManager.cs (1)
146
window.
ThemeMode
= themeMode;
18 references to ThemeMode
PresentationFramework (18)
System\Windows\Appearance\WindowBackdropManager.cs (1)
36
if(!ThemeManager.IsFluentThemeEnabled && window.
ThemeMode
== ThemeMode.None)
System\Windows\ThemeManager.cs (9)
40
if (window.
ThemeMode
== ThemeMode.None)
65
if (window.
ThemeMode
== ThemeMode.None)
144
if(window.
ThemeMode
!= themeMode)
152
if (!IsFluentThemeEnabled && window.
ThemeMode
== ThemeMode.None)
157
if (window.
ThemeMode
!= ThemeMode.None)
159
useLightColors = GetUseLightColors(window.
ThemeMode
);
259
bool useLightColors = GetUseLightColors(window.
ThemeMode
);
260
AddOrUpdateThemeResources(window.Resources, GetThemeDictionary(window.
ThemeMode
));
274
if (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.
2165
if(value != null &&
ThemeMode
!= ThemeMode.None)
2167
value.MergedDictionaries.Insert(0, ThemeManager.GetThemeDictionary(
ThemeMode
));
2409
if(
ThemeMode
!= ThemeMode.None)
2621
ThemeManager.OnWindowThemeChanged(this, ThemeMode.None,
ThemeMode
);