Multiple Themes on the Same WinForm - Is it Possible?

2 posts, 0 answers
  1. Özgür
    Özgür avatar
    1 posts
    Member since:
    Jan 2013

    Posted 04 Apr 2013 Link to this post


    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? 
  2. Stefan
    Stefan avatar
    2891 posts

    Posted 05 Apr 2013 Link to this post

    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.
    the Telerik team
    WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
  3. DevCraft banner
Back to Top