I need, for my WPF app, to detect when the DWM is turned on/off or when the system theme changes. There is such an event in WinForms, but I can\'t see any in WPF.
The event SystemEvents.UserPreferenceChanged also does the trick. UserPreferenceChanged(in Japaense)