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

Button not applying theme at runtime

3 Answers 152 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 05 Feb 2009, 03:11 PM
I have 2 radbuttons on my form and i created a custom theme for them. During design time i applied the theme to the buttons and all is well. However when i view the form in runtime it defaults back to the Radforms theme which is "Office2007Black". I dont understand why this is happening. I even tried to set the theme in code

RadButtonPar_Start.ThemeName =

"Startbutton"

 

 

RadButtonPar_Stop.ThemeName = "Stopbutton"

Thanks in advance!

3 Answers, 1 is accepted

Sort by
0
michael evans
Top achievements
Rank 1
answered on 06 Feb 2009, 12:17 PM
I really need an answer...anyone monitoring theses forms?

Thanks
0
Nikolay
Telerik team
answered on 06 Feb 2009, 02:52 PM
Hello michael evans,

I suppose that you are using the xml theme file as a resource. Please note that you should set its Build Action to Embedded Resource. Otherwise, the theme will be applied at design-time, but not runtime.
For additional information about using external themes, please refer to the following Knowledge Base:
Adding custom redistributable themes to your applications

I am attaching a sample project which demonstrates the correct behavior. Could you confirm that the behavior on your side is correct as well?

Regards,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
michael evans
Top achievements
Rank 1
answered on 06 Feb 2009, 05:31 PM
Thanks so much for your help
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Michael
Top achievements
Rank 1
Answers by
michael evans
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or