1 write to ThemeMode
PresentationFramework (1)
System\Windows\ThemeManager.cs (1)
127
Application.Current.
ThemeMode
= themeMode;
15 references to ThemeMode
PresentationFramework (15)
System\Windows\Application.cs (4)
897
if(value != null &&
ThemeMode
!= ThemeMode.None)
899
value.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)
23
bool useLightColors = GetUseLightColors(Application.Current.
ThemeMode
);
25
FluentThemeState newFluentThemeState = new FluentThemeState(Application.Current.
ThemeMode
.Value, useLightColors);
29
AddOrUpdateThemeResources(Application.Current.Resources, GetThemeDictionary(Application.Current.
ThemeMode
));
125
if (Application.Current.
ThemeMode
!= themeMode)
157
useLightColors = GetUseLightColors(Application.Current.
ThemeMode
);
270
bool useLightColors = GetUseLightColors(Application.Current.
ThemeMode
);
324
return 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
"/>.