ThemeClass name does not persist

2 posts, 0 answers
  1. Sean McConnell
    Sean McConnell avatar
    38 posts
    Member since:
    Aug 2007

    Posted 05 Mar 2008 Link to this post

    Hello, I may be doing something unusual, but I figured I'd give it a try and it worked..

    I changed the 'ThemeClassName' for a RadPanel to a custom name, then matched that in a Theme file - this way I have more descriptive ThemeClass names.

    It DOES work, which is great - the problem is when I close the user control, it wipes out my custom ThemeClassName, and reverts it back to 'Telerik.WinControls.UI.RadPanel'.

    Is this intended behaviour? It seems that if I can change this property it should save it, otherwise the property should be locked.

    Thanks.
  2. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 07 Mar 2008 Link to this post

    Hello Randall Kohltfarber,

    Thank you for pointing this out.

    The ThemeClassName property value is not serialized in the designer on purpose. ThemeClassName is the property which indicates which theme is suitable for which control, by being descriptive about the control type. Visual Style Builder respects only RadControls types, so if you change the ControlType in the xml file (ThemeClassName respectively for the control) you will not be able to edit the theme anymore.

    However, you can get more descriptive themes by setting descriptive Theme Names.

    If you need additional assistance, do not hesitate to contact me.

    All the best,
    Nikolay
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top