I'm trying to get the TreeViewItemAdv object that is being dropped onto another TreeViewItemAdv object within the same TreeViewAdv control, but the DataObject is not being returned by the call to GetData. tvItemBeingDragged is set to "Nothing" after the call to e.Data.GetData. Here is a code sample of what I'm trying to do
Private Sub TreeViewItemAdv_Drop(sender As Object, e As Windows.DragEventArgs)
'Get the item
that is receiving the dropped item
Dim tvTargetItem As TreeViewItemAdv = e.Source
'Get the item
that is being dropped onto tvTargetItem
Dim tvItemBeingDragged As TreeViewItem = e.Data.GetData(GetType(TreeViewItem))
'Do some stuff
here with the items
End Sub
Is there another way to get the TreeViewItem being dragged?
Thanks,
Todd