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

Multiple Themes on the Same WinForm - Is it Possible?

1 Answer 148 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Özgür
Top achievements
Rank 1
Özgür asked on 04 Apr 2013, 10:40 AM
Hello,

I am using ThemeResolutionService to apply theme of entire application.
But there is a special area on certain form of my application and I want to use a custom theme for that special area (RadPanel).

But when I use a ThemeResolutionService, this approach overrides my custom theme for that RadPanel.
Is there any way to achieve this goal? 
Thanks.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 05 Apr 2013, 11:06 AM
Hi Özgür,

Thank you for writing.

That is correct, setting the ApplicationThemeName via the ThemeResolutionService will have higher priority over local control theme settings. To achieve your goal, you can use the ApplyThemeToControl tree method for each form in your application and also, set the desired panel's ThemeName:
ThemeResolutionService.ApplyThemeToControlTree(this, "Desert");
radPanel1.ThemeName = "Aqua";

Off topic, the other thread which you have opened regarding the same matter ("ThemeResolutionService Is Overriding Custom Theme")  was deleted due to duplicity. Please avoid posting the same question more than once.
 
Regards,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
Themes and Visual Style Builder
Asked by
Özgür
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or