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

RadWindow Dialog theme - code behind

2 Answers 57 Views
Window
This is a migrated thread and some comments may be shown as answers.
Craig Mellon
Top achievements
Rank 1
Craig Mellon asked on 04 Sep 2012, 04:11 PM
Hi, I'm calling the RadWindow.Confirm in code behind but for some reason I can't set the theme of the confirm box, this is what I've tried so far -
Dim radWindow As New RadWindow()
StyleManager.SetTheme(radWindow, New Windows7Theme())
RadWindow.Confirm("Do you want to save changes?", AddressOf OnSaveDialogClosed)

I've also searched the forums / help files and can't find a solution or see why the above will not work.

Many thanks!

2 Answers, 1 is accepted

Sort by
0
Accepted
Vladi
Telerik team
answered on 05 Sep 2012, 02:03 PM
Hello Craig,

In order to change the Confirm window theme you will need to call the StyleManager before the InitializeComponent() method in the MainPage. Note that when using the StyleManager you will changed the theme of all of the controls in the UserControl not only for the RadWindow control.

I created and attached a sample project for you showing the proper way of changing the Confirm window theme.

Hope this is helpful.

Greetings,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Craig Mellon
Top achievements
Rank 1
answered on 05 Sep 2012, 03:05 PM
Perfect, thank you.
Tags
Window
Asked by
Craig Mellon
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Craig Mellon
Top achievements
Rank 1
Share this question
or