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

How to change theme for whole application

5 Answers 160 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
york
Top achievements
Rank 1
york asked on 04 Jan 2013, 11:26 PM
Hi,

I want to change theme for the entire wpf application. I am using RadControls for WPF Q3 2012. When use (in MainWindow.xaml.cs)
StyleManager.ApplicationTheme = new VistaTheme();
Compiler gives,
Error    1    The name 'StyleManager' does not exist in the current context.
Error    2    The type or namespace name 'VistaTheme' could not be found (are you missing a using directive or an assembly reference?)

I notice that the Telerik.Windows.Themes.Vista.dll is not added. However Telerik.Windows.Themes.Vista.dll can not be found (it is not in Binaries directory). I need help on this. Thanks.

York


5 Answers, 1 is accepted

Sort by
0
york
Top achievements
Rank 1
answered on 07 Jan 2013, 08:17 AM
This is solved.
0
Cosmin
Top achievements
Rank 1
answered on 06 Sep 2013, 08:50 AM
How was this issue solved?
0
Tony
Top achievements
Rank 1
answered on 08 Jul 2015, 09:43 AM
What the **** is the point of just saying that the problem is solved without putting the solution!?
0
york
Top achievements
Rank 1
answered on 10 Jul 2015, 06:00 AM
The post is for long time ago and I forget the solution. If you have same problem, please post a question again.
0
Dimitrina
Telerik team
answered on 10 Jul 2015, 12:01 PM
Hi,

I would suggest you using Implicit Styles instead of StyleManager. You can check this help article on Implicit Styles and article on Switching Themes at Runtime for a reference.

Regards,
Dimitrina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
york
Top achievements
Rank 1
Answers by
york
Top achievements
Rank 1
Cosmin
Top achievements
Rank 1
Tony
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or