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

After updating Telerik version got missing resource 'ThemeType' issue

4 Answers 157 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Arsen
Top achievements
Rank 1
Veteran
Arsen asked on 14 Oct 2020, 01:44 PM

In our project we have updated Telerik UI for WPF to version 2020.2.617.

So, the existing Telerik dlls (NoXaml version) were updated via Nuget Package manager to 2020.2.617 version

However when I have updated the theme xaml files, I got the following errors:

Inner Exception 1:<br>XamlObjectWriterException: 'Provide value on 'System.Windows.StaticResourceExtension' threw an exception.' Line number '100' and line position '12'.<br><br>Inner Exception 2:<br>Exception: Cannot find resource named 'ThemeType'. Resource names are case sensitive.

 

As from the error I can see that `ThemeType` resource is missing and that is why application is crashing at runtime.

After investigating a bit I wasn't able to find this resource inside xaml files, which means that it is probably in some dll which is missing from the project.

 

Will much appreciate for any support!

4 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 19 Oct 2020, 09:14 AM

Hello Arsen,

Thank you for the provided details.

Generally speaking, the ThemeType property belongs to the ThemeResourceKey class which is located in the Telerik.Windows.Controls.dll.

Can you, however, please clarify for which XAML file this exception is thrown and what is the code on "Line number '100' and line position '12'" as specified by the error message? Please also give more details on what you mean by "updated the theme xaml files" - are these custom styles you have applied or do you copy the default files from the Themes.Implicit folder? Please note that in the latter case you must not include the theme dll or package in this case.

If possible, please also send over an isolated version of your project which demonstrates the error so that I can further investigate at my end.

Thank you in advance for your cooperation on the matter. I will be awaiting your reply.

Regards,
Dilyan Traykov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Arsen
Top achievements
Rank 1
Veteran
answered on 19 Oct 2020, 09:51 AM
Hi Dilyan,

Thank you for your reply.

Actually, I've found out what was the issue reason: basically, I was trying to update the NoXaml files from the Telerik official source (https://www.telerik.com/account/product-download?product=RCWPF), but instead of installing the Telerik_UI_for_WPF_2020_X_XXX_Dev.msi version and later copying the XAML files from there, I was trying to copy them from the  Telerik_UI_for_WPF_XXX_X_XXX_Themes.zip, "Themes" zip, because at first sight that was the obvious place to look at.

As you correctly mentioned, I had to check the Themes.Implicit folder, but the main question about where I had to look for that folder was that you need to install the MSI for the version you want and then only check that.

Although the problem solved for me, I still question the purpose of the Themes zip file in the Telerik official download location(for example, Telerik_UI_for_WPF_2020_3_915_Themes.zip).

Would you please give me information about that?
0
Dilyan Traykov
Telerik team
answered on 22 Oct 2020, 09:24 AM

Hi Arsen,

The request to provide a separate archive with the theme resource files actually came from clients with the argument that you may wish to extract these styles without actually having an installation of the suite.

As you've observed, however, these dictionaries are suited for use with the StyleManager and I've now started a discussion whether the Themes.Implicit folder should also be included in this archive or provided as a separate resource.

I will let you know of the results of this discussion as soon as we've reached a decision. Thank you for bringing this to our attention.

Regards,
Dilyan Traykov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Dilyan Traykov
Telerik team
answered on 22 Oct 2020, 02:12 PM

Hi Arsen,

Thank you for your patience.

We've decided to log the following feature request to provide a separate archive in your Telerik account with the theme files used with the implicit styles theming approach. You can vote for it and follow it for future updates. As a thank you for bringing this to our attention, I've also awarded you some Telerik points.

In the meantime, if I can further assist you with anything else, please let me know.

Regards,
Dilyan Traykov
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

Tags
General Discussions
Asked by
Arsen
Top achievements
Rank 1
Veteran
Answers by
Dilyan Traykov
Telerik team
Arsen
Top achievements
Rank 1
Veteran
Share this question
or