Change a RadButton theme after application theme has been applied

2 posts, 0 answers
  1. JDLC
    JDLC avatar
    2 posts
    Member since:
    Feb 2012

    Posted 14 Feb 2012 Link to this post

    I've applied a theme to the application using  
    ThemeResolutionService.ApplicationThemeName = "MyTheme";

    All works as expected, my theme is applied.

    Later on in the application, one specific RadButton needs to have a different theme applied programatically, say "MyThemeWarning"

    So I try
    myButton.ThemeName = "MyThemeWarning";


    but nothing changes, the button remains with the theme that was applied to the application. I have verified MyThemeWarning is being loaded by the ThemeResolutionService. 

    What is the correct way to change the theme of a specific RadButton after the ApplicationThemeName has been set?

  2. JDLC
    JDLC avatar
    2 posts
    Member since:
    Feb 2012

    Posted 14 Feb 2012 Link to this post

    Looks like this has been addressed before, here is the solution:

    http://www.telerik.com/community/forums/winforms/themes-and-visual-style-builder/overriding-theme-for-specific-control-after-applying-customized-theme-for-entire-application.aspx#1910874 
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top