I have a HeaderTemplate that contains two RadPathButtons.
One of the button's PathGeometry is defined in xaml:
PathGeometry="{telerik:RadGlyph Glyph=}"
The other one's PathGeometry is defined using the RadGlyph markup extension:
PathGeometry="{telerik:RadGlyph Glyph={StaticResource GlyphInvertColors}}"
When using the markup extension the Visual Studio 2019 (Preview) xaml editor shows error "The resource GlyphInvertColors has an incompatible type"
There are no errors when not using the markup extension.
In both cases it works perfectly at runtime. The errors only appear at Design time.
As of a day or two ago, these errors would disappear if I rebuilt the solution. But now they are persistent and never go away.
Here is the xaml I am using:
<
telerik:RadWindow.HeaderTemplate
>
<
DataTemplate
>
<
DockPanel
LastChildFill
=
"False"
>
<
TextBlock
DockPanel.Dock
=
"Left"
Text
=
"{StaticResource ApplicationTitle}"
VerticalAlignment
=
"Center"
Margin
=
"0,0,8,0"
/>
<
StackPanel
DockPanel.Dock
=
"Right"
Orientation
=
"Horizontal"
FlowDirection
=
"RightToLeft"
>
<
telerik:RadPathButton
Style
=
"{DynamicResource RadPathHeaderButtonStyle}"
PathGeometry
=
"{telerik:RadGlyph Glyph=}"
Command
=
"{Binding DataContext.ShowSettingsDialogCommand, ElementName=mainWindow}"
CommandParameter
=
"{Binding RelativeSource={RelativeSource AncestorType={x:Type telerik:RadWindow}}}"
telerik:RadToolTipService.Placement
=
"Mouse"
telerik:RadToolTipService.VerticalOffset
=
"1"
telerik:RadToolTipService.ToolTipContent
=
"Settings"
>
<
telerik:RadToolTipService.ToolTipContentTemplate
>
<
DataTemplate
>
<
telerik:RadToolTipContentView
>
<
TextBlock
Text
=
"{Binding}"
/>
</
telerik:RadToolTipContentView
>
</
DataTemplate
>
</
telerik:RadToolTipService.ToolTipContentTemplate
>
</
telerik:RadPathButton
>
<
telerik:RadPathButton
Style
=
"{DynamicResource RadPathHeaderButtonStyle}"
PathGeometry
=
"{telerik:RadGlyph Glyph={StaticResource GlyphInvertColors}}"
Command
=
"{Binding DataContext.TogglePaletteCommand, ElementName=mainWindow}"
>
<
telerik:RadToolTipService.ToolTipContentTemplate
>
<
DataTemplate
>
<
telerik:RadToolTipContentView
>
<
TextBlock
Text
=
"{Binding}"
/>
</
telerik:RadToolTipContentView
>
</
DataTemplate
>
</
telerik:RadToolTipService.ToolTipContentTemplate
>
</
telerik:RadPathButton
>
</
StackPanel
>
</
DockPanel
>
</
DataTemplate
>
</
telerik:RadWindow.HeaderTemplate
>
I'm not certain this is actually an issue with the RadGlyph or RadPathButton. It could very well be a Visual Studio issue. Or, of course, it could be a mistake that I am making (maybe something missing or incorrect in my xaml or maybe I am missing a required dependency. Any ideas would be greatly appreciated.