I am new to the Telerik WinForms controls (so be gentle if this is dumb question).
I have looked through the doc, watched videos and searched the forums, but I can not figure out how to set a theme that applies to an entire application or even all controls on a form. It seems like you have to set the theme on every control on every form. What am I missing?
- Jim
I have looked through the doc, watched videos and searched the forums, but I can not figure out how to set a theme that applies to an entire application or even all controls on a form. It seems like you have to set the theme on every control on every form. What am I missing?
- Jim
6 Answers, 1 is accepted
0
Hi Jim,
Indeed you are right about the docs, even though the approach is pretty straightforward. There is no help topic article about this and we are taking the point. We will fix this for the next release. The property you need is
ThemeResolutionService.ApplicationThemeName
and it is static for your convenience.
All the best,
Mike
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Indeed you are right about the docs, even though the approach is pretty straightforward. There is no help topic article about this and we are taking the point. We will fix this for the next release. The property you need is
ThemeResolutionService.ApplicationThemeName
and it is static for your convenience.
All the best,
Mike
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Tony
Top achievements
Rank 1
answered on 30 Jul 2008, 02:20 AM
My question is similar to this post. How do I combine the many control themes into one file to set the entire application theme to? At one point I thought it would be combining all the BuilderRegistrations into one file under the root. But then I looked at all the examples and all of them have one file per control. I have the feeling I missed something. Can you direct me where to look?
Thanks
Thanks
0
Hello Tony,
Thank you for interest in themes.
1) You could easy combine many theme files in one theme file via Visual Style Builder: To do this open the desired files one by one and save them using "Save As" in one file.
2) As of Q2 2008 release all themes moved in separate assemblies, apart from the controls assemblies. In order to be able to use them, you should drag and drop the particular component from the Toolbox to the form.
To set the entire application theme to desired theme you should use the follow property:
ThemeResolutionService.ApplicationThemeName
This property sets the theme name that will be used by all controls in the application.
Note that some themes do not exist for all controls, for example the name of the black theme Office2007Black for RadGridVIew is Vista Telerik
I recommend to read also follows explanations about themes:
Managing predefined themes in Q2 2008
We moved all common themes in separate components
And very helpful Theming Optimizations
Hope this helps.
Kind regards,
Peter
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Thank you for interest in themes.
1) You could easy combine many theme files in one theme file via Visual Style Builder: To do this open the desired files one by one and save them using "Save As" in one file.
2) As of Q2 2008 release all themes moved in separate assemblies, apart from the controls assemblies. In order to be able to use them, you should drag and drop the particular component from the Toolbox to the form.
To set the entire application theme to desired theme you should use the follow property:
ThemeResolutionService.ApplicationThemeName
This property sets the theme name that will be used by all controls in the application.
Note that some themes do not exist for all controls, for example the name of the black theme Office2007Black for RadGridVIew is Vista Telerik
I recommend to read also follows explanations about themes:
Managing predefined themes in Q2 2008
We moved all common themes in separate components
And very helpful Theming Optimizations
Hope this helps.
Kind regards,
Peter
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0

SelAromDotNet
Top achievements
Rank 2
answered on 22 Jul 2009, 02:35 AM
I'm a little confused on this.. I've added the following code to my applications main form's constructor:
ThemeResolutionService
.ApplicationThemeName = "Office2007Black";
but when I launch the application, the default basic theme is still being used.
also does this not support design time (so I can see the theme while I edit)?
thanks!
0
Hi SelArom,
In order to have Office2007Black theme applied, you should drag and drop the Office2007BlackTheme component on your form. This will load the Office2007Black themes in your project and when you set ApplicationThemeName to Office2007Black, RadControls will get the correct style.
ApplicationThemeName could be set only by code and it is supported only at runtime. In order to preview RadControls at design-time you need to set the ThemeName property to each one of them.
If you have additional questions, feel free to contact me.
All the best,
Nikolay
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.
In order to have Office2007Black theme applied, you should drag and drop the Office2007BlackTheme component on your form. This will load the Office2007Black themes in your project and when you set ApplicationThemeName to Office2007Black, RadControls will get the correct style.
ApplicationThemeName could be set only by code and it is supported only at runtime. In order to preview RadControls at design-time you need to set the ThemeName property to each one of them.
If you have additional questions, feel free to contact me.
All the best,
Nikolay
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