Skip to content

SystemThemeManager class

Defined in

Namespace: CrissCross.WPF.UI.Appearance Assembly: CrissCross.WPF.UI.dll Full name: CrissCross.WPF.UI.Appearance.SystemThemeManager Modifiers: public static

Summary

        Provides information about Windows system themes.
        

Applies to

net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481

Examples

var currentWindowTheme = SystemThemeManager.GetCachedSystemTheme();
SystemThemeManager.UpdateSystemThemeCache();
 var currentWindowTheme = SystemThemeManager.GetCachedSystemTheme();

Properties

NameSummary
static GlassColorGets the Windows glass color.
static HighContrastGets a value indicating whether the system is currently using the high contrast theme.

Methods

NameSummary
static GetCachedSystemThemeReturns the Windows theme retrieved from the registry. If it has not been cached before, invokes the [UpdateSystemThemeCache](#
static UpdateSystemThemeCacheRefreshes the currently saved system theme.
Inherited members