I have the following ViewModel property:
public List<List<string>> Names ....
In my opinion, I need an ItemsControl having an ItemsControl :
<ItemsControl ItemsSource="{Binding Names}"> <ItemsControl.ItemTemplate> <DataTemplate> <ItemsControl ItemsSource="{Binding ?????}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal" /> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> <ItemsControl.ItemTemplate> <DataTemplate> <Label Text="{Binding ??????}" /> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl>
How can I bind List items? In the sampel code above, I designated it ?????
source share