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

problem with editing a theme

1 Answer 58 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Kerri
Top achievements
Rank 1
Kerri asked on 23 Oct 2007, 07:01 PM
I added a custom theme to a panelbar control.  I wanted to change something in it.  I opened up the theme in the theme builder and changed some stuff.  I tried to save and got an error message, so I saved it under a different name.  I deleted the old theme file and theme manager.  I created a new theme manager.  I changed the property on the new theme to embedded resource, added it as a resource, and added it to my new theme manager.  The panelbar control still lists the old theme under the themeName properties and it did not list my new theme until I added it as a file to the theme manager.  Now it lists both themes.  I tried changing the theme manager to have this file be a resource instead of a file, but the panelbar control will only display the theme if it's a file (not a resource.)  How do I get rid of old themes then add new ones properly?

Thanks,
Kerri

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 25 Oct 2007, 07:47 AM
Hello starg0ddess,

Thank you for the question.

The
theme issue you've described occurs when the theme manager cannot resolve path to the resource.

If you are using C# and the theme file is located in the folder \WindowsApplication1 and named MyTheme1.xml, the path to the theme in the theme manager should be: "WindowsApplication1.MyTheme1.xml". What's important to note here is that in order to reference the theme, its name should be preceded by the list of folders relative to the project file folder, separated by fullstops.

If you're using VB, you don't need to precede the name of the theme by the folder list, as the themes stored in resources can be referenced without preceding them with the folder list.

I hope this is useful. If you need any further assistance, please contact us again.


Best wishes,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Themes and Visual Style Builder
Asked by
Kerri
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or