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

How to apply the aqua theme to my entire application?!

5 Answers 310 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike A
Top achievements
Rank 1
Mike A asked on 17 Apr 2010, 08:03 PM
Hello
I created a form user the Rad WinForms toolbox in visual studio and now i like to apply the aqua theme to the entire application without assigning the aqua theme to each form. 

I notice that i need to add this code at the begining of my code 
ThemeResolutionService.ApplicationThemeName = "aqua"

so when i did add this line of code it does not work. In fact, this parcel of the code ThemeResolutionService will have a a curly black line under it. More over, i have dragged and dropped the aqua theme from the toolbox on to my application!!!


I am using vb.net

what should i do to apply the theme to the entire application???


thanks  

5 Answers, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 22 Apr 2010, 01:31 PM
Hi Mike Elnar,

Thank you for contacting us.

In general your approach is fine. The theme names, however, are case sensitive. So, you should use this code to set the name:
ThemeResolutionService.ApplicationThemeName = "Aqua"

As to the underlined ThemeResolutionService class, please note that it is contained in the Telerik.WinControls namespace, so you need to import this namespace at the beginning of your code file:
Imports Telerik.WinControls

I hope that this information is helpful. If you have additional questions, feel free to contact us.

Regards,
Alexander
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Mike A
Top achievements
Rank 1
answered on 22 Apr 2010, 04:57 PM
Wow

you guys are so helpful thanks very much for the help guys :)


one more question about the same issue - how can i give my uses the option to select their own theme ???
0
Robert
Top achievements
Rank 1
answered on 22 Apr 2010, 08:30 PM
Hello Mike,

There is actually a video about changing themes at runtime that shows how to give users the option of selecting a theme.

A blog entry is also available:

I hope this information helps.

- Robert
0
Mike A
Top achievements
Rank 1
answered on 22 Apr 2010, 11:36 PM
Hello there
thanks for the replay

actually the demonstrator in hist video have option called "Telerik" option on the top i belive it is next to view on the menu on the top. I don't have that option. What do i need to do to add that option so i can create new project as he is demonstrating?


Thanks
0
Martin Vasilev
Telerik team
answered on 28 Apr 2010, 04:26 PM
Hi Mike Elnar,

The integration with Visual Studio's menu is a built-in feature in the latest version of RadControls for Winforms. You should simply install it to have the Telerik item in the menu.

Best wishes,
Martin Vasilev
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Mike A
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Mike A
Top achievements
Rank 1
Robert
Top achievements
Rank 1
Martin Vasilev
Telerik team
Share this question
or