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

Style on AppSettings

5 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Henrique Duarte
Top achievements
Rank 1
Veteran
Henrique Duarte asked on 27 Apr 2009, 05:49 PM
Guys,

Do we have an appsettings to set the style to all Telerik Controls for WPF like we have for ASP.NET AJAX Controls?

Regards,

Henrique

5 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 29 Apr 2009, 12:59 PM
Hi Henrique Duarte,

To change the theme of the whole application you have to use :
StyleManager.ApplicationTheme = ThemeManager.FromName("Vista"
 
Note that you should put this line in the Application constructor (before InitializeComponent method).

Please let me know if you need more help.

Sincerely yours,
Boyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Henrique Duarte
Top achievements
Rank 1
Veteran
answered on 29 Apr 2009, 02:30 PM
Boyan,

I want to let the user select a theme from a combo too and save his preference on database.
I need to reopen the application?

Regards,

Henrique
0
Miroslav
Telerik team
answered on 04 May 2009, 02:08 PM
Hi Henrique,

Sorry for the delayed reply!

Yes, when you change the application theme, the effect will take place only after the application has been reloaded. This is a limitation of Silverlight because a Style cannot be set twice.

Instead of refreshing the page, you can try recreating the root visual or the part of the application that you want to change.

All the best,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Henrique Duarte
Top achievements
Rank 1
Veteran
answered on 04 May 2009, 02:40 PM
Hi Miroslav,

Does WPF have the same limitation?
If doesn't, how can I do that?

Regards,

Henrique
0
Accepted
Miroslav
Telerik team
answered on 04 May 2009, 02:47 PM
Hi Henrique,

I am sorry, I answered in a hurry and did not see that you were asking about the WPF controls.

Currently the WPF Controls share the same implementation and you need to restart the application. We will make them dynamically skinnable in a future release.

Kind regards,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Henrique Duarte
Top achievements
Rank 1
Veteran
Answers by
Boyan
Telerik team
Henrique Duarte
Top achievements
Rank 1
Veteran
Miroslav
Telerik team
Share this question
or