This is a migrated thread and some comments may be shown as answers.

Implicit Theme and RadWindow as the Main Window

1 Answer 194 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Veteran
Paul asked on 06 Jul 2020, 12:29 PM

I am using the Fluent theme implicitly (noxaml). If I use a standard Window as my main window, it appears correctly and the controls are properly themed.

However, if I change the main window to use RadWindow (and make the appropriate change to override OnStartup in App.xaml), at runtime the window does not appear.

I'm thinking that it may be that the RadWindow is rendering before the styling has been loaded. The RadWindow does render correctly in the designer.

Any thoughts on this?

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 09 Jul 2020, 10:38 AM

Hello Paul,

In this scenario you will also need to create a Style that targets the class that derives RadWindow (usually the MainWindow class) and base it on the RadWindowStyle. This is shown in the last code snippet from the Using RadWindow as User Control article.

For example:

<Style TargetType="local:MainWindow" BasedOn="{StaticResource RadWindowStyle}" />

Regards,
Martin Ivanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Paul
Top achievements
Rank 1
Veteran
Answers by
Martin Ivanov
Telerik team
Share this question
or