1 write to ThemeMode
PresentationFramework (1)
System\Windows\ThemeManager.cs (1)
124Application.Current.ThemeMode = themeMode;
15 references to ThemeMode
PresentationFramework (15)
System\Windows\Application.cs (4)
898if(value != null && ThemeMode != ThemeMode.None) 900value.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)
20bool useLightColors = GetUseLightColors(Application.Current.ThemeMode); 22FluentThemeState newFluentThemeState = new FluentThemeState(Application.Current.ThemeMode.Value, useLightColors); 26AddOrUpdateThemeResources(Application.Current.Resources, GetThemeDictionary(Application.Current.ThemeMode)); 122if (Application.Current.ThemeMode != themeMode) 154useLightColors = GetUseLightColors(Application.Current.ThemeMode); 267bool useLightColors = GetUseLightColors(Application.Current.ThemeMode); 314return 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"/>.