Guest User

Untitled

a guest
Aug 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. WPF: styling a HierarchicalDataTemplate
  2. <Grid.Resources>
  3. <HierarchicalDataTemplate ItemsSource="{Binding Items}" DataType="{x:Type entities:Folder}" ItemContainerStyle="{StaticResource FileComponentItem}">
  4. <Grid ShowGridLines="False" HorizontalAlignment="Center">
  5. <TextBlock Grid.Column="0" Text="{Binding Type}" />
  6. </Grid>
  7. </HierarchicalDataTemplate>
  8. <HierarchicalDataTemplate ...... />
  9. </Grid.Resources>
  10.  
  11. <TreeView Grid.Row="1" BorderThickness="0" ItemsSource="{Binding}" ItemContainerStyle="{StaticResource FlattenedTreeViewItem}"></TreeView>
Add Comment
Please, Sign In to add comment