26 references to ThemeManager
PresentationFramework (26)
System\Windows\Appearance\WindowBackdropManager.cs (1)
35if(!ThemeManager.IsFluentThemeEnabled && window.ThemeMode == ThemeMode.None)
System\Windows\Application.cs (6)
903value.MergedDictionaries.Insert(0, ThemeManager.GetThemeDictionary(ThemeMode)); 973if (!ThemeManager.IsValidThemeMode(value)) 984ThemeManager.OnApplicationThemeChanged(oldValue, value); 1000ThemeManager.OnApplicationThemeChanged(oldValue, value); 1746&& !ThemeManager.SkipAppThemeModeSyncing) 1748ThemeManager.SyncApplicationThemeMode();
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
34if (ThemeManager.IsFluentThemeEnabled) 66if (ThemeManager.IsFluentThemeEnabled)
System\windows\Documents\TextEditorContextMenu.cs (1)
423if(ThemeManager.IsFluentThemeEnabled)
System\Windows\SystemFonts.cs (3)
428if(ThemeManager.IsFluentThemeEnabled 429|| ThemeManager.IsFluentThemeDictionaryIncluded()) 431return MessageFontSize * ThemeManager.DefaultFluentFontSizeFactor ;
System\Windows\SystemResources.cs (3)
1397if(ThemeManager.IsFluentThemeEnabled || ThemeManager.FluentEnabledWindows.Count > 0) 1399ThemeManager.OnSystemThemeChanged();
System\Windows\TreeWalkHelper.cs (2)
461if(!ThemeManager.IgnoreWindowResourcesChange) 463ThemeManager.SyncWindowThemeMode(currentWindow);
System\Windows\Window.cs (8)
585if(!ThemeManager.IsValidThemeMode(value)) 595ThemeManager.OnWindowThemeChanged(this, oldTheme, value); 607ThemeManager.OnWindowThemeChanged(this, oldTheme, value); 2148value.MergedDictionaries.Insert(0, ThemeManager.GetThemeDictionary(ThemeMode)); 2390ThemeManager.FluentEnabledWindows.Remove(this); 2591if (ThemeManager.IsFluentThemeEnabled) 2593ThemeManager.ApplyStyleOnWindow(this); 2599ThemeManager.OnWindowThemeChanged(this, ThemeMode.None, ThemeMode);