Reputation: 127
I've looked at the Drop and ItemDroppedOn Target event handlers but it appears that you can only access the source. The sender is the TreeViewDragDropTarget when I actually want to see the item in the TreeView that is being dropped on.
Upvotes: 2
Views: 1232
Reputation: 127
private void drag_Drop(object sender, Microsoft.Windows.DragEventArgs e)
{
((System.Windows.FrameworkElement)(e.OriginalSource)).DataContext
Is what I was looking for
Upvotes: 3