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

Change a RadButton theme after application theme has been applied

1 Answer 89 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
JDLC
Top achievements
Rank 1
JDLC asked on 14 Feb 2012, 08:14 PM
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?

1 Answer, 1 is accepted

Sort by
0
JDLC
Top achievements
Rank 1
answered on 14 Feb 2012, 10:51 PM
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 
Tags
Themes and Visual Style Builder
Asked by
JDLC
Top achievements
Rank 1
Answers by
JDLC
Top achievements
Rank 1
Share this question
or