Hi All
There are many posts about the HierarchicalDataTemplate and how to bind to data that has a specific level structure, ie Categories contain products that contain orders etc.
This can be done in the following manner:
But what about if you have more complex structures such as categories with unlimited sub level categories and or categories that can contain both sub category and product types in the same level.
I cannot seem to make this type of layout work. Is this possible?
There are many posts about the HierarchicalDataTemplate and how to bind to data that has a specific level structure, ie Categories contain products that contain orders etc.
This can be done in the following manner:
<core:HierarchicalDataTemplate x:Key="League" ItemsSource="{Binding Divisions}"> |
<StackPanel Orientation="Horizontal"> |
<Image Source="{Binding Image}" Margin=" 0,0,6,0" /> |
<TextBlock Text="{Binding Name}" Foreground="Black" FontWeight="Bold" FontSize="15" /> |
</StackPanel> |
</core:HierarchicalDataTemplate> |
But what about if you have more complex structures such as categories with unlimited sub level categories and or categories that can contain both sub category and product types in the same level.
I cannot seem to make this type of layout work. Is this possible?