-root1 ..-child1 ....subchild11 ....subchild12 -root2 ..-child2 ....subchild21 ....subchild22 ..... .....
-root1 ..+child1 -root2 ..+child2
<telerik:RadTreeView ItemsSource="{Binding Path=OrderedProductsByRun}" ItemTemplate="{StaticResource OrderedProductsByRun}" Height="300" ScrollViewer.VerticalScrollBarVisibility="Auto" ExpanderStyle="{StaticResource ExpandCollapseToggleStyle}" TabIndex="6" IsSingleExpandPath="True"> <telerik:RadTreeView.ItemContainerStyle> <Style> <Setter Property="telerik:RadTreeViewItem.IsExpanded" Value="True"/> </Style> </telerik:RadTreeView.ItemContainerStyle> </telerik:RadTreeView> <HierarchicalDataTemplate x:Key="OrderedProductsByRun" ItemsSource="{Binding Path=RoutesForRun}" ItemTemplate="{StaticResource RoutesForRun}" > <Stackpanel.........></Stackpanel> <Stackpanel.........></Stackpanel> <Stackpanel.........></Stackpanel> </HierarchicalDataTemplate> <HierarchicalDataTemplate x:Key="RoutesForRun" ItemsSource="{Binding Path=OrderActivityDetails}" ItemTemplate="{StaticResource OrderActivityDetails}" > <Stackpanel.........></Stackpanel> <Stackpanel.........></Stackpanel> <Stackpanel.........></Stackpanel> </HierarchicalDataTemplate> <DataTemplate x:Key="OrderActivityDetails"> <Stackpanel.........></Stackpanel> <Stackpanel.........></Stackpanel> <Stackpanel.........></Stackpanel> </DataTemplate>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)