problem with editing a theme

2 posts, 0 answers
  1. Kerri
    Kerri avatar
    3 posts
    Member since:
    Jul 2007

    Posted 23 Oct 2007 Link to this post

    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?

  2. Peter
    Peter avatar
    1148 posts

    Posted 25 Oct 2007 Link to this post

    Hello starg0ddess,

    Thank you for the question.

    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,
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top