1 write to ThemeMode
PresentationFramework (1)
System\Windows\ThemeManager.cs (1)
124
Application.Current.
ThemeMode
= themeMode;
15 references to ThemeMode
PresentationFramework (15)
System\Windows\Application.cs (4)
898
if(value != null &&
ThemeMode
!= ThemeMode.None)
900
value.MergedDictionaries.Insert(0, ThemeManager.GetThemeDictionary(
ThemeMode
));
945
/// These values are predefined in <see cref="
ThemeMode
"/> struct
948
/// <see cref="
ThemeMode
"/> and <see cref="Resources"/> are designed to be in sync with each other.
System\Windows\ThemeManager.cs (7)
20
bool useLightColors = GetUseLightColors(Application.Current.
ThemeMode
);
22
FluentThemeState newFluentThemeState = new FluentThemeState(Application.Current.
ThemeMode
.Value, useLightColors);
26
AddOrUpdateThemeResources(Application.Current.Resources, GetThemeDictionary(Application.Current.
ThemeMode
));
122
if (Application.Current.
ThemeMode
!= themeMode)
154
useLightColors = GetUseLightColors(Application.Current.
ThemeMode
);
267
bool useLightColors = GetUseLightColors(Application.Current.
ThemeMode
);
314
return Application.Current.
ThemeMode
!= ThemeMode.None;
System\Windows\ThemeMode.cs (2)
24
/// This is the default value for <see cref="Application.
ThemeMode
"/> and <see cref="Window.ThemeMode"/>
27
/// When <see cref="Application.
ThemeMode
"/> is not set to <see cref="None"/>,
System\Windows\Window.cs (2)
551
/// <see cref="ThemeMode.None"/> - No Fluent theme is loaded. However, if <see cref="Application.
ThemeMode
"/> is not None,
552
/// then the window will appear as defined in <see cref="Application.
ThemeMode
"/>.