Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Buttons, RadioButton, CheckBox, etc > Button not applying theme at runtime

Not answered Button not applying theme at runtime

Feed from this thread
  • Michael avatar

    Posted on Feb 5, 2009 (permalink)

    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!

    Reply

  • michael evans avatar

    Posted on Feb 6, 2009 (permalink)

    I really need an answer...anyone monitoring theses forms?

    Thanks

    Reply

  • Nikolay Nikolay admin's avatar

    Posted on Feb 6, 2009 (permalink)

    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.
    Attached files

    Reply

  • michael evans avatar

    Posted on Feb 6, 2009 (permalink)

    Thanks so much for your help

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Buttons, RadioButton, CheckBox, etc > Button not applying theme at runtime
Related resources for "Button not applying theme at runtime"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]