Hi Jonas,
Thank you for your update.
We have checked the reported behaviour using the GroupViewItem inside the ItemTemplate of the GroupView. We found on populating the ItemsSouce to GroupView, group view item created inside the item container. So when we place the GroupViewItem inside the ItemTemplate, it will be added as the child of the existing GroupViewItem which already present inside the item container. Since our GroupViewItem is working based on the logical parent and it is not a detachable control, so it tries to find the logical parent continuously, that leads to crash. So only, we are unable to define the GroupViewItem inside the ItemTemplate of the GroupView. If we add any other controls inside the ItemTemplate of the GroupView, it will be working properly.
Also we found that, ItemsControl is bound to a collection object in the given sample that is not bound to any syncfusion properties. We have modified the sample where the ItemContainerStyle property is used instead of the ItemTemplate property.
Please let us know and share some more information based on your requirement like for what purpose you have used GroupViewItem inside the ItemTemplate , it will be helpful for us to let you know a solution.
Please find the attached sample with code snippet.
Code snippet:[XAML]
|
<syncfusion:GroupView IsListViewMode="True" ItemsSource="{Binding GroupViewItems}" >
<syncfusion:GroupView.ItemContainerStyle>
<Style TargetType="{x:Type syncfusion:GroupViewItem}">
<Setter Property="Text" Value="Outbox"/>
<Setter Property="ToolTip" Value="Outbox"/>
<Setter Property="TextHorizontalAlignment" Value="Left"/>
<Setter Property="ImageHorizontalAlignment" Value="Right"/>
<Setter Property="ImageSource" Value="Images/Outbox.png"/>
</Style>
</syncfusion:GroupView.ItemContainerStyle>
</syncfusion:GroupView>
|
Regards
Vijayalakshmi VR