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

ThemeClass name does not persist

1 Answer 88 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Sean McConnell
Top achievements
Rank 1
Sean McConnell asked on 05 Mar 2008, 09:25 PM
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.

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 07 Mar 2008, 11:46 AM
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
Tags
Themes and Visual Style Builder
Asked by
Sean McConnell
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or