Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <TreeView.ItemContainerStyle>
- <Style TargetType="{x:Type TreeViewItem}">
- <EventSetter Event="TreeViewItem.PreviewMouseLeftButtonDown" Handler="PreviewMouseLeftButtonDown" />
- </Style>
- </TreeView.ItemContainerStyle>
- void PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
- {
- if (sender is TreeViewItem)
- {
- //clone the tree item, create an adorner, apply adorner
- //doDragDrop
- }
- }
- HeaderNodeObject
- |_LeafnodeObject
- |_LeafNodeOject
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement