There is this MSDN doc : Know when Dark mode is enabled about the second method
(but I generally use the first method by reading the registry...)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
What is the way to detect windows application dark mode setting (If it is dark or light), in a C# WPF application.
Settings > Personalization > Colors > “Choose your default app mode”
Screenshot from Windows 10 operating system.
I am aware of most of the ways (to detect this setting) that can be found on forums, like below. But was not able to find any official documentation for the same.
So, require a Microsoft Windows documented, official & reliable way by means of which it is possible to detect the “Choose your default app mode” setting programmatically (WPF, C#).
Also are their similar ways to detect this in different versions of Windows (8.1, 10, 11, etc.)
There is this MSDN doc : Know when Dark mode is enabled about the second method
(but I generally use the first method by reading the registry...)