Hi.
I'm attempting to use the new SelectedDataItems (Ig 14.2) binding on the XamDataTree, but am getting the following compile error :
"Tags of type 'PropertyArrayStart' are not supported in template sections"
The xaml looks a little like this :
<UserControl.Resources>
<DataTemplate x:Key="GroupTemplate"> <ig:XamDataTree ItemsSource="{Binding Items}" SelectedDataItems="{Binding SelectedFolders}" ... />
</DataTemplate>
<Style TargetType="{x:Type igOutlook:OutlookBarGroup}"> <Setter Property="ContentTemplate" Value="{StaticResource GroupTemplate}" /> </Style>
</UserControl.Resources>
<XamOutlookBar />
Hi Michael,
SelectedDataItems is an object[] and it appears as though arrays are not allowed to be used inside DataTemplates. I'm not sure why the platform has this limitation but I created a development issue (ID: 185101) so that we could address this. Along with the development issue I also created a private support case for you. The case number is CAS-146841-J7W5J4 and you can view it here: https://ko.infragistics.com/my-account/support-activity
You can view the status of the development issue connected to this case by going to the “My IG” tab on our website, hovering to the "My Support Activity" dropdown and selecting the "Development Issues" tab.
It turned out that this is a limitation of the .NET framework and we reported it to MS (link). Currently you could workaround it as place the data template content in a UserControl and reference it in the window DataTemplate, i.e. instead of:<Window.Resources> <DataTemplate x:Key=”foo”> <ig:XamDataTree SelectedDataItems=”{Binding SelectedFolders}” /> </DataTemplate /></Window.Resources>use this:<Window.Resources> <DataTemplate x:Key=”foo”> <local:TreeUserControl /> </DataTemplate /></Window.Resources>Where the TreeUserControl just had something like:<UserControl …> <ig:XamDataTree SelectedDataItems=”{Binding SelectedFolders}” /></UserControl>
Thank you for helping us to improve our controls!Best Regards,Petia Koleva