or
<Window x:Class="MainWindow" xmlns:local="clr-namespace:WpfApplication1" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Height="350" Width="525" Title="InterWalmartGraph Cafeteria Grocery Store"> <Window.Resources> <DataTemplate x:Key="ReadonlyTextCellTemplate"> <DockPanel Margin="1"> <TextBlock Text="{Binding Count}"/> <Button Content="{Binding Name}" /> </DockPanel> </DataTemplate> </Window.Resources> <Grid x:Name="LayoutRoot" > <telerik:RadTreeListView x:Name="radTreeListView" AutoGenerateColumns="False"> <telerik:RadTreeListView.ChildTableDefinitions> <telerik:TreeListViewTableDefinition ItemsSource="{Binding Items}" /> </telerik:RadTreeListView.ChildTableDefinitions> <telerik:RadTreeListView.Columns> <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Header="Name" /> <telerik:GridViewDataColumn Header="Count" CellTemplate="{StaticResource ReadonlyTextCellTemplate}" /> </telerik:RadTreeListView.Columns> </telerik:RadTreeListView> </Grid> </Window> <Setter Property="VerticalAlignment" Value="Top"/><Style TargetType="telerik:RadPanelBarItem" x:Key="LeftMenuSubItemStyle"> <Style.Triggers> <Trigger Property="IsEnabled" Value="False"> <Setter Property="FontWeight" Value="Normal"/> <Setter Property="Opacity" Value="0.70"/> </Trigger> <Trigger Property="IsSelected" Value="True"> <Setter Property="FontWeight" Value="Bold"/> </Trigger> </Style.Triggers> <Setter Property="IsSelected" Value="{Binding IsCurrent, Mode=TwoWay}" /> <Setter Property="IsEnabled" Value="{Binding IsNavigationEnabled, Mode=TwoWay}" /> </Style> <Style TargetType="telerik:RadPanelBarItem" x:Key="LeftMenuMainItemStyle"> <Setter Property="IsExpanded" Value="{Binding IsExpanded, Mode=TwoWay}" /> <Setter Property="VerticalAlignment" Value="Top"/> </Style> <!--Data template for the DescriptiveSubMenuItem object--> <HierarchicalDataTemplate DataType="{x:Type domain:DescriptiveSubMenuItem}"> <Grid Margin="15,0,0,0"> <TextBlock Text="{Binding Title}" Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextWrapping="Wrap" FontSize="12"> <TextBlock.InputBindings> <MouseBinding MouseAction="LeftClick" Command="{ Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext.MenuItemClicked}" CommandParameter="{Binding Title}" /> </TextBlock.InputBindings> </TextBlock> <Rectangle HorizontalAlignment="Right" Width="15" Height="15" Visibility="{Binding IsCheckVisible}" Fill="{StaticResource CompleteCheck}" Margin="0,0,10,0"> <Rectangle.InputBindings> <MouseBinding MouseAction="LeftClick" Command="{ Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataContext.MenuItemClicked}" CommandParameter="{Binding Title}" /> </Rectangle.InputBindings> </Rectangle> </Grid> </HierarchicalDataTemplate> <!--Data template for the DescriptiveMenuItem object--> <HierarchicalDataTemplate DataType="{x:Type domain:DescriptiveMenuItem}" ItemsSource="{Binding SubMenuItems}" ItemContainerStyle="{StaticResource LeftMenuSubItemStyle}"> <Label Content="{Binding Header}" FontSize="16" Margin="0"/> </HierarchicalDataTemplate> </UserControl.Resources> <Grid> <telerik:RadPanelBar ItemsSource="{Binding ActiveNavigationItems}" ExpandMode="Multiple" ItemContainerStyle="{StaticResource LeftMenuMainItemStyle}"> </telerik:RadPanelBar> </Grid>

