10 Answers, 1 is accepted
Thank you for writing.
You can use the static methods of the ThemeResolutionService class to load the package. Detailed information is available in the following article: Using custom themes.
Please let me know if there is something else I can help you with.
Regards,
Dimitar
Telerik
See What's Next in App Development. Register for TelerikNEXT.
We have updated our documentation site. Here is the new link: Using custom themes.
Should you have any other questions do not hesitate to ask.
Regards,
Dimitar
Progress Telerik
Thanks for fixing the link...
I tried to follow all of the instructions here, but I seem to be going wrong somewhere.
So far I have:
1. Used Visual Style Builder to create a simple style. To test, just a new background color for RadTreeView.
2. Saved it as a tssp file
3. Added the TSSP file to the Resources of my application (VB.net and VS2017)
4. added the command to load the package resource..ThemeResolutionService.LoadPackageResource("StyleTester.MX2.tssp")
5. Run the app: but no changes to my control.
What have I missed?
You need to do two more things:
- Set the build action of the theme to Embedded Resource.
- Set the ApplicationThemeName property.
The attached screenshot shows the above steps.
Let me know how this works on your side.
Regards,
Dimitar
Progress Telerik
Ah ha! Thanks - that's working fine now.
Can I suggest that you add this advice to your instructions ? Maybe a step-by-step guide all the way from from copying the built-in themes, through to testing them in a project. At the moment, the instructions are a bit spread-out, in videos, some in KB articles, and some in the regular documentation. And there is contradictory advice about using the individual control XML files and the newer tssp approach.
This is one of the main reasons why I bought the WinForms framework, so it's a critical feature, and one which evaluators of your product will probably test as well.
...and thanks for the great support!
We will update the documentation as soon as possible. Do not hesitate to contact us if you have other questions.
Regards,
Dimitar
Progress Telerik
Hello,
but this method doesn't work on client's hardware. why??
working good on developing mode.
can you able to explain? please.
Without looking at the project I cannot say why this is not working. This is why I want to kindly ask you to open a new support ticket and attach your project there. This will allow us to properly investigate your case and determine what is casing this.
Thank you for your understanding.
Regards,
Dimitar
Progress Telerik
Thanks for the reply, now is working good.
thanks