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

Custom Theme not loading

3 Answers 340 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 28 Jun 2019, 05:04 AM

I have created a custom theme in the Visual Style Builder for the RadPageView, built off TelerikMetro as a base .  I can view it  in the Theme Viewer and it looks exactly like I want it.  I then save just the resource file that ends with _RadPageViewStripElement.xml (I intend to only use it for View Mode = strip).

I then follow exactly the steps to add it to a VS2017 VB Winforms application under the RadThemeManager.  I tried to add it both as Resource or a File.  After I do, I can add a RadPageView to the form and when selecting a theme, I can see my new theme in the dropdown.  However, I get no formatting.

I'm not sure what else I am missing. There are 7 xml files referenced in the save window related to RadPageView.  I assume I only need the one for the View Mode I intend to use.  Are there other resource files I need?

I have tried almost everything and have reached the point of frustration.  I'm sure it is something minor, but can't get past it.

If necessary, I can also send my Theme file for review.

Thanks,

3 Answers, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 28 Jun 2019, 02:09 PM
Hello, Mark,

According to the provided information I can see that you want to set a custom theme by making use of the RadThemeManager. When using RadThemeManager, you should load to your project all xml files generated while customizing the theme in Visual Style Builder.

Another easier solution I can suggest is to load the whole theme package. Please refer to the following help article which describes the exact steps how to load theme package resource and set the theme to the control: https://docs.telerik.com/devtools/winforms/styling-and-appearance/using-custom-themes

You need to add your tssp file containing the theme to your project. In the Properties window for the XML file, set the Build Action to Embedded Resource.


I hope this information helps. Should you have any other questions, I will be glad to help.

Regards,
Nadya
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Mark
Top achievements
Rank 1
answered on 02 Jul 2019, 05:50 PM

Thanks for your reply.  The Second method of creating a reference to the *.tssp file works.  However, my theme is not available at design time. 

Just to confirm, to have the theme at design time, I'd have to export all the XML files from Visual Style Builder and add all the XML's into RadThemeManager?  

Since it was built off of TelerikMetro, I just added that theme at design time to act as a placeholder until it is overwritten at runtime with the custom theme.

 

 

 

0
Nadya | Tech Support Engineer
Telerik team
answered on 03 Jul 2019, 10:56 AM
Hello Mark,

Yes, this approach is correct. For your convenience, you can select at once the XML files when adding all of them to the RadThemeManager. Additionally, we have a feature request for similar functionality on our Feedback Portal. You can vote to increase its priority as well as track its progress, subscribe to status changes, and add your comment to it here.

Should you have any other questions, do not hesitate to ask.

Regards,
Nadya
Progress Telerik
Get quickly onboarded 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
PageView
Asked by
Mark
Top achievements
Rank 1
Answers by
Nadya | Tech Support Engineer
Telerik team
Mark
Top achievements
Rank 1
Share this question
or