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

Telerik Theme at design time

1 Answer 152 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Konrad Sikorski
Top achievements
Rank 1
Konrad Sikorski asked on 01 May 2012, 08:18 PM

Hi,

How can I apply any of built in application theme (for example Windows7) to my application to see it on design time for example in blend.

Now I am using this:

StyleManager.ApplicationTheme = new Windows7Theme();

And it is working on run time but of course not in designer.

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 02 May 2012, 09:17 AM
Hello Konrad,

 
The application wide theme setting is evaluated at runtime. In WPF if you want to have design-time support for a particular theme you should set it in XAML at an element level to achieve your goal.  In Silverlight is possible to define the application theme in XAML, however in WPF is not. By that reason I recommend you to use the approach proposed above. 



Greetings,
Vanya Pavlova
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
Konrad Sikorski
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or