RadGlyph The resource has an incompatible type.

0 Answers 49 Views
General Discussions
CyberBotX
Top achievements
Rank 2
Veteran
CyberBotX asked on 17 Aug 2021, 09:26 PM

So, this isn't something that comes up everywhere in my project but seems similar to https://www.telerik.com/forums/pathbutton-pathgeometry-error-glyph-has-an-incompatible-type but also different. In all of the following cases, I get the error `The resource "<glyphname>" has an incompatible type.` at design-time as well as not seeing the glyph in the XAML Designer:

<TextBlock FontFamily="{StaticResource TelerikWebUI}" Text="{StaticResource GlyphArrowUpward}" />

<Grid Width="16" Height="16">
	<Path Fill="Black" Data="{telerik:RadGlyph Glyph={StaticResource GlyphArrowUpward},Type=Path}" />
</Grid>

<Image Width="16" Height="16" Source="{telerik:RadGlyph Glyph={StaticResource GlyphArrowUpward}}" />

<telerik:RadGlyph Glyph="{StaticResource GlyphArrowUpward}" />

I have attempted all 4 of the above within the content of a WPF Button as well as a Telerik RadButton.

Strangely, I am able to use the last one as the content of RadFilePathPicker.ShowDialogButtonContent and don't get any errors and see the glyph just fine in the XAML Designer.

I have the proper resource dictionary within my App.xaml inside the ResourceDictionary.MergedDictionaries portion of it. I assume I wouldn't be getting the glyphs otherwise. I am using Visual Studio 2019 16.11.1 and I use Telerik UI for WPF via Telerik's NuGet packages, currently on 2021.1.325 (I cannot update past that), but I was having this issue with earlier versions as well. I also attempted to follow the directions in the help article linked in the above forum question. The problem persists even after all of that.

I don't necessarily need this fixed, it is more of an annoyance than a showstopper. But if there is some solution to this, that would be nice.

Stenly
Telerik team
commented on 19 Aug 2021, 12:14 PM

Could you specify which binaries you are using? Xaml or NoXaml? How do you set the theme for the application, with the Implicit Styles approach or Style Manager approach? Have you tried to Clean and Rebuild the solution?
CyberBotX
Top achievements
Rank 2
Veteran
commented on 19 Aug 2021, 01:04 PM

I use the NoXaml binaries, with the Fluent theme being installed alongside the other packages.

I am using Implicit Styles.

As mentioned in the initial post, I did try to clean and rebuild already, following the directions in that link.

Stenly
Telerik team
commented on 24 Aug 2021, 12:17 PM

Could you edit the attached project, so that it matches the behavior, that is present on your side? Also, could you specify which .Net Framework version is the project on? And the exact name and version of the NuGet packages as well.

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
CyberBotX
Top achievements
Rank 2
Veteran
Share this question
or