26 references to ThemeManager
PresentationFramework (26)
System\Windows\Appearance\WindowBackdropManager.cs (1)
36
if(!
ThemeManager
.IsFluentThemeEnabled && window.ThemeMode == ThemeMode.None)
System\Windows\Application.cs (6)
939
value.MergedDictionaries.Insert(0,
ThemeManager
.GetThemeDictionary(ThemeMode));
1009
if (!
ThemeManager
.IsValidThemeMode(value))
1020
ThemeManager
.OnApplicationThemeChanged(oldValue, value);
1036
ThemeManager
.OnApplicationThemeChanged(oldValue, value);
1779
&& !
ThemeManager
.SkipAppThemeModeSyncing)
1781
ThemeManager
.SyncApplicationThemeMode();
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
38
if (
ThemeManager
.IsFluentThemeEnabled)
70
if (
ThemeManager
.IsFluentThemeEnabled)
System\windows\Documents\TextEditorContextMenu.cs (1)
425
if(
ThemeManager
.IsFluentThemeEnabled)
System\Windows\SystemFonts.cs (3)
437
if(
ThemeManager
.IsFluentThemeEnabled
438
||
ThemeManager
.IsFluentThemeDictionaryIncluded())
440
return MessageFontSize *
ThemeManager
.DefaultFluentFontSizeFactor ;
System\Windows\SystemResources.cs (3)
1417
if(
ThemeManager
.IsFluentThemeEnabled ||
ThemeManager
.FluentEnabledWindows.Count > 0)
1419
ThemeManager
.OnSystemThemeChanged();
System\Windows\TreeWalkHelper.cs (2)
465
if(!
ThemeManager
.IgnoreWindowResourcesChange)
467
ThemeManager
.SyncWindowThemeMode(currentWindow);
System\Windows\Window.cs (8)
606
if(!
ThemeManager
.IsValidThemeMode(value))
616
ThemeManager
.OnWindowThemeChanged(this, oldTheme, value);
628
ThemeManager
.OnWindowThemeChanged(this, oldTheme, value);
2167
value.MergedDictionaries.Insert(0,
ThemeManager
.GetThemeDictionary(ThemeMode));
2411
ThemeManager
.FluentEnabledWindows.Remove(this);
2613
if (
ThemeManager
.IsFluentThemeEnabled)
2615
ThemeManager
.ApplyStyleOnWindow(this);
2621
ThemeManager
.OnWindowThemeChanged(this, ThemeMode.None, ThemeMode);