Advertisement
sergeyfk05

Untitled

Dec 27th, 2017
1,929
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 0.78 KB | None | 0 0
  1. <TreeView x:Name="TreeView" FontSize="{Binding TreeViewTextSize}" Grid.Row="2" Margin="10" ItemsSource="{Binding DisplayedItemsTree}"  Effect="{Binding Content_Effect}" IsEnabled="{Binding Content_IsEnabled}"/>
  2.  
  3. <HierarchicalDataTemplate DataType="{x:Type local:Item}" ItemsSource="{Binding Items}">
  4.             <StackPanel Orientation="Horizontal">
  5.                 <Image Height="{Binding ElementName=TreeView, Path=FontSize}" Margin="3 0 5 0" Source="{Binding PathToImage}"/>
  6.                 <TextBlock FontSize="{Binding ElementName=TreeView, Path=FontSize}" Text="{Binding Title}" Margin="0 0 5 0"/>
  7.                 <ItemsControl ItemsSource="{Binding Items}"
  8.                        ItemTemplate="{StaticResource tplItemRect}"/>
  9.             </StackPanel>
  10. </HierarchicalDataTemplate>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement