Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 17th, 2012  |  syntax: None  |  size: 0.87 KB  |  hits: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Display button on tree item mouseOver
  2. <UserControl.Resources>
  3.      <HierarchicalDataTemplate x:Key="TreeSubjects" ItemsSource="{Binding Path=Children}">
  4.         <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  5.            <CheckBox x:Name="chbChecked" />
  6.            <TextBlock x:Name="txbSubjectName"
  7.            Text="{Binding Path=SubjectName}" Margin="2,0,2,0"  VerticalAlignment="Center" />
  8.            <Button x:Name="btnProperties" Content="Properties"  Visibility="Collapsed"/>
  9.        </StackPanel>                                                    
  10.     </HierarchicalDataTemplate >
  11. </UserControl.Resources>
  12.        
  13. <sdk:TreeView  x:Name="trTaxonomy" ItemsSource="{Binding TreeSubjects}"
  14.                     ItemTemplate="{StaticResource TreeSubjects}"      
  15.                     ItemContainerStyle="{StaticResource SubjectNodeStyle}"
  16.                             />