I have a strange new bug in Visual Studio XAML Editor when I place a RadGridView inside a DataTemplate. It is quite easy to reproduce:
- create a new WPF Core 3.1 project
- add Telerik.UI.for.Wpf.NetCore 2020.2.513 (as NuGet package)
- place the following code inside the Resource-part of the window:
01.
<Window.Resources>
02.
<DataTemplate x:Key=
"testTemplate"
>
03.
<Grid>
04.
<telerik:RadGridView>
05.
<telerik:RadGridView.Columns>
06.
<telerik:GridViewDataColumn DataMemberBinding=
"{Binding Title}"
></telerik:GridViewDataColumn>
07.
</telerik:RadGridView.Columns>
08.
</telerik:RadGridView>
09.
</Grid>
10.
</DataTemplate>
11.
</Window.Resources>
It does not matter that there is no ItemsSource or which field you are binding the GridViewDataColumn to. As soon as I include the property DataMemberBinding="{...}" I get a warning from "Microsoft.CodeAnalysis.Xaml.Diagnostics.Analyzers.XamlDocumentDiagnosticAnalyzer" saying that there is a NullReferenceException. From there on there is no more Intellisense or Autocomplete inside my Xaml Editor.
Could someone at Telerik check if it is just my developer machine or is it a bug that I detected? Visual Studio 2019 is Version 16.6.0.
Thanks in advance!
Regards
Heiko