HypernovaDesktop Components · docs
Binarymission
WPF › Skinning › WindowsAppearance

WindowsAppearance

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Skinning

The light or dark mode and the accent colour the user has chosen in Windows.

public static class WindowsAppearance

Members at a glance

AccentColorGets the accent colour chosen in Windows.
IsDarkModeGets whether Windows is set to dark mode for applications.

Properties

AccentColor

public static Color? AccentColor

Gets the accent colour chosen in Windows.

Value. The accent, or null where Windows does not keep one or it cannot be read.

IsDarkMode

public static bool IsDarkMode

Gets whether Windows is set to dark mode for applications.

Value. true when the user has chosen dark for apps; false when light, or when the setting cannot be read (Windows before 10).