Changing Background Color of Regular WPF Window with Windows 11 OS Theme
|Progress Telerik UI for WPF
I want to change the background color of a regular WPF window according to the Light/Dark theme setting in the Windows 11 operating system. However, the color does not change when I toggle the theme between light and dark mode in the
Windows > PC Settings > Personalization.
To achieve this requirement, you can use the
RadWindow control instead of the
Window control. Additionally, you should set the
RadWindow as the
MainWindow of your application and use the
System color variation of the Telerik Windows11 theme.
Here are the steps to implement the solution:
- Replace the
Windowcontrol with the RadWindow control in your project.
- Set the RadWindow as the MainWindow of your application.
- Set the Windows11 theme and apply the