loading cutom themes (.tssp) from project resources (Rsources.resx)

2 Answers 54 Views
Styling Themes and Visual Style Builder
Pin
Top achievements
Rank 1
Iron
Pin asked on 18 Dec 2021, 07:38 AM | edited on 18 Dec 2021, 12:12 PM

Hi.

Is there any way to put the custom themes (.tssp) in the project resources (Resources.resx) and load from there?

I'm actually looking for a way to include the .tssp files in the program itself (not as a separate files in project output)

Note: Currently my theme files are in the project folder and I'm using this method:

https://docs.telerik.com/devtools/winforms/styling-and-appearance/advanced-topics/adding-custom-redistributable-themes-to-your-application/creating-a-theme-component

 

Thanks

2 Answers, 1 is accepted

Sort by
1
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 20 Dec 2021, 01:21 PM

Hello, Pin,

It is possible to add a custom theme as a resource to your project. Please have a look at the following help article which describes the exact steps how to do this:

https://docs.telerik.com/devtools/winforms/styling-and-appearance/advanced-topics/adding-custom-redistributable-themes-to-your-application/adding-a-custom-theme-as-a-resource 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Pin
Top achievements
Rank 1
Iron
commented on 20 Dec 2021, 06:14 PM | edited

.
0
Pin
Top achievements
Rank 1
Iron
answered on 20 Dec 2021, 06:30 PM

Hi Dess,
Thanks for the reply
I have two questions about the link you mentioned:
1: In step-2, it said that the theme file must be in .xml format. But my theme file(s) is .tssp. Doesn't that cause a problem?
2: In step-7, I get into trouble (Error invoking....). Can you give me a simple example to see the method?

thank you

Dess | Tech Support Engineer, Principal
Telerik team
commented on 21 Dec 2021, 10:32 AM

Hello, Pin,

Currently, RadThemeManager only supports XML files. Feeding it a tssp file doesn't work. However, we already have a similar feature request logged in our feedback portal. You can track its progress, subscribe for status changes and add your comments on the following link: 
https://feedback.telerik.com/winforms/1382563-loadpackageresource-from-radthememanager 

In order to load a theme package, feel free to use the following approach:
https://docs.telerik.com/devtools/winforms/styling-and-appearance/using-custom-themes 

As to the second question, I have prepared a sample project for your reference which steps are illustrated in the gif file.
Pin
Top achievements
Rank 1
Iron
commented on 23 Dec 2021, 04:42 PM

Hi Dess,

The sample file helped a lot. Thank you very much and Merry Christmas 🎄🎄🎄

Tags
Styling Themes and Visual Style Builder
Asked by
Pin
Top achievements
Rank 1
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Pin
Top achievements
Rank 1
Iron
Share this question
or