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

Themes - Why is this so difficult?

3 Answers 33 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 27 Feb 2018, 12:10 AM

Is it just me?

Standard Winforms app.  I have used the Visual Style builder to create a custom theme and saved it as 'UVTMetroBlue.tssp', in a sub=folder of my project named 'Theme'.

In Visual Studio 2017 I add the theme package as a resource.  I go to the RadThemeManger on my MainForm, and select load from resource. It prompts me to enter the resource location string.

If I enter what I believe is the correct string : "UVTMain.Theme.UVTMetroBlue.tssp", I get a null reference error. If I add it through 'Edit Themese', and browse to the file, same "null reference" error.

 

If I put in nonsense, it accepts it without error.

So, I go to 'Edit Themes' on the Theme Manager and there is the entry

Unable locate Resource file 'aasdasdasd' in the project folder 'C:\Users\hespect\source\Workspaces\UVeritech\UVTMain\UVTMain\'

 

Is something wrong with my .tssp file?

 

 

 

3 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 27 Feb 2018, 09:30 AM
Hi Karen,

Thank you for writing.

The theme manager cannot work with tssp files (it only works with XML files). You can directly load the tssp file by using a single method. An example is available here: Using custom themes.

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Ian
Top achievements
Rank 1
answered on 08 Jan 2019, 10:12 AM
I would be good to update the Webinar video from 2010 to reflect that the tssp mechanism has changed things, and that the individual XML files for each control are now not so useful. I'm also strugling to make this work with vb.net and tssp files.
0
Dimitar
Telerik team
answered on 09 Jan 2019, 06:25 AM
Hi Ian,

Thank you for your feedback. We will indeed consider improving this. We can continue to discuss the theme loading in the other thread.

Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Themes and Visual Style Builder
Asked by
David
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Ian
Top achievements
Rank 1
Share this question
or