Button not applying theme at runtime

4 posts, 0 answers
  1. Michael
    Michael avatar
    18 posts
    Member since:
    Feb 2009

    Posted 05 Feb 2009 Link to this post

    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!

  2. michael evans
    michael evans avatar
    6 posts
    Member since:
    Apr 2006

    Posted 06 Feb 2009 Link to this post

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

    Thanks
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 06 Feb 2009 Link to this post

    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.
  5. michael evans
    michael evans avatar
    6 posts
    Member since:
    Apr 2006

    Posted 06 Feb 2009 Link to this post

    Thanks so much for your help
Back to Top