RadWindow as Main Window does not display Color Variation of Theme

0 Answers 45 Views
Window
Jeremy
Top achievements
Rank 1
Jeremy asked on 20 Mar 2022, 03:49 AM

Hello,

Using the information at https://docs.telerik.com/devtools/wpf/controls/radwindow/how-to/use-radwindow-as-user-control works well for using the RadWindow with Prism.

However, it appears that the window is not using the color variation of the theme. I would like to switch dynamically from Light to Dark, but have been unsuccessful.

In the App.xaml.cs in OnStartup, the first line is:

Office2019Palette.LoadPreset(Office2019Palette.ColorVariation.Dark);

Other controls change to this theme, but not the Main Window.

Any suggestions?

Thank you!

Martin Ivanov
Telerik team
commented on 21 Mar 2022, 12:09 PM

I've tested this in a small sample (without PRISM) and it seems that the color variation is applied properly. You can find the test project attached. 

You can try calling LoadPreset() also in the constructor of the RadWindow's control before the InitializeComponent() call. If this doesn't help, can you send over a small example showing the issue?

Jeremy
Top achievements
Rank 1
commented on 01 Apr 2022, 09:50 PM

It seems to be working now. It could have been that there was no content in the window, and therefore the background did not appear dark. However, now that there are some controls the theme appears to be applied. If the issue re-appears, I'll re post.
Martin Ivanov
Telerik team
commented on 04 Apr 2022, 06:27 AM

Good to hear that, the issue is gone now.

No answers yet. Maybe you can help?

Tags
Window
Asked by
Jeremy
Top achievements
Rank 1
Share this question
or