Class SystemThemeManager
- Namespace
- Wpf.Ui.Appearance
- Assembly
- Wpf.Ui.dll
Provides information about Windows system themes.
public static class SystemThemeManager
- Inheritance
-
SystemThemeManager
- Inherited Members
Examples
var currentWindowTheme = SystemThemeManager.GetCachedSystemTheme();
SystemThemeManager.UpdateSystemThemeCache();
var currentWindowTheme = SystemThemeManager.GetCachedSystemTheme();
Properties
GlassColor
Gets the Windows glass color.
public static Color GlassColor { get; }
Property Value
HighContrast
Gets a value indicating whether the system is currently using the high contrast theme.
public static bool HighContrast { get; }
Property Value
Methods
GetCachedSystemTheme()
Returns the Windows theme retrieved from the registry. If it has not been cached before, invokes the UpdateSystemThemeCache() and then returns the currently obtained theme.
public static SystemTheme GetCachedSystemTheme()
Returns
- SystemTheme
Currently cached Windows theme.
UpdateSystemThemeCache()
Refreshes the currently saved system theme.
public static void UpdateSystemThemeCache()