Posted 7 October 2020, 1:24 pm EST
Hi,I'm working with C1DockGroup and MVVM. My problem is when I bind the itemssource, item's not be added in C1DockGroup and throws invalid child error. Please do the needful and please refer my below xaml code.
<c1:C1DockControl x:Name="dockControl" Grid.Row="2" ItemDockModeChanged="DockControl_ItemDockModeChanged" PickerLoading="DockControl_PickerLoading">
<c1:C1DockGroup Name="dockGroup" ItemsSource="{Binding DockGroupItems,UpdateSourceTrigger=PropertyChanged}">
<c1:C1DockGroup.ItemTemplate>
<DataTemplate>
<c1:C1DockTabControl>
<c1:C1DockTabItem Header="{Binding Department}"></c1:C1DockTabItem>
</c1:C1DockTabControl>
</DataTemplate>
</c1:C1DockGroup.ItemTemplate>
</c1:C1DockGroup>
</c1:C1DockControl>
public ObservableCollection<MyDataClass> DockGroupItems = new ObservableCollection<MyDataClass>();
Thanks and Regards,
Vinoth Kumar Ravi