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
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
0
Hi Henrique Duarte,
To change the theme of the whole application you have to use :
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.
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
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
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.
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
Does WPF have the same limitation?
If doesn't, how can I do that?
Regards,
Henrique
0
Accepted
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.
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.