I've applied a theme to the application using
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
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?
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?