views:

48

answers:

2

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.

+1  A: 
private void drag_Drop(object sender, Microsoft.Windows.DragEventArgs e)
{
    ((System.Windows.FrameworkElement)(e.OriginalSource)).DataContext

Is what I was looking for

Druzil
A: 

Unfortunately does not really work... Gives the data context of the element containing the exact co-ordinate where drop occured (e.OriginalSource)... Howevfr this is not always the new parent... it can be also sibling if you drop it close to ah edge of e.OriginalSource...

jJ'