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

Changing theme dynamically

1 Answer 108 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jeffrey
Top achievements
Rank 1
Jeffrey asked on 13 Jan 2010, 04:10 AM
Hi,

I'm trying to change the theme of a RadWindow from C# but couldn't get it to work. This is my code:

XAML:
<telerikNavigation:RadWindow 
        x:Name="winMainWindow"
... />

C# (Button click event):
StyleManager.SetTheme(this.winMainWindow, new VistaTheme());


Note that the RadWindow is the root element, and my code behind class is inheriting from RadWindow as follow:

public partial class MainWindow : RadWindow
{
...

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 13 Jan 2010, 01:21 PM
Hi Jeffrey,

 I'm not sure that I can understand what you are doing. Could you please send us a sample project that reproduces the problem? This would be of great help.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Jeffrey
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or