I have a WPF application. I read (and observe) the Registry Key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\Personalize\AppsUseLightTheme
to see if (and when) Dark Mode is active or inactive. I than use WPF themes to make the application dark or light.
Anyway, I didn't found a way to change the title bar. There must be some way, because Windows Explorer also gets a dark title bar when Dark Mode is on. I didn't know of other applications that have this.
I know that CMD window also gets a black title bar in Dark mode, but I assume that is different, because Console windows are special anyway.
So, how can I tell Windows that my application supports or is in dark mode, so that the title bar becomes black?