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

Setting application theme

3 Answers 108 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Patrick
Top achievements
Rank 1
Patrick asked on 11 Jan 2012, 04:06 PM
As per your example on setting an application wide style (just before InitializeComponent is called in MainPage) :
Telerik.Windows.Controls.StyleManager.ApplicationTheme = new Telerik.Windows.Controls.Windows7Theme();

If we implement this method of styling our application, are we limited to only the given styles?

3 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 12 Jan 2012, 03:19 PM
Hello Stephen,

You can apply which theme you want to be applied on each control by setting 
telerik:StyleManager.Theme="DesiredTheme"
This works even if you have set a global theme. I.e if you set the Application theme to be MetroTheme, by default every control will be style like this. If you create, for example, a GridView and set its theme to ExpressionDark, it will be styled accordingly. 
<telerik:RadGridView telerik:StyleManager.Theme="Expression_Dark"/>
You can learn more about our theming mechanism here
Note that the default Microsoft component won't be styled by setting the application theme. You will have to set theme on every control in order to achieve the desired style. You can find more information about which controls can be styled in our forums. Here you can find how it can be achieved in WPF. The same can be applied in Silverlight.

Hope this helps!
 
Kind regards,
Nik
the Telerik team

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

0
Patrick
Top achievements
Rank 1
answered on 12 Jan 2012, 03:27 PM
Thanks for commenting, but not exactly what I'm asking though...

The Telerik themes, "Expression_Dark", "Windows7", "Vista" and so on,
Am I limited to only use these themes via this method, or is it possible (and not too time consuming) to create our own theme in the future to use in exactly the same way?
0
Accepted
Nick
Telerik team
answered on 16 Jan 2012, 08:07 AM
Hi Stephen,

Yes you can create your own custom theme, and apply it the same way. You can find more information and details regarding the implementation in the forums. And you can find a sample in this thread.

Hope this helps!

Regards,
Nik
the Telerik team

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

Tags
General Discussions
Asked by
Patrick
Top achievements
Rank 1
Answers by
Nick
Telerik team
Patrick
Top achievements
Rank 1
Share this question
or