Multiple DropTargets with Canvas and many listbox

Apr 1, 2010 at 7:35 PM

First of all, this is a great tool.

Here is my scenario:

I have a Hierarchial Treeview with 1 particular node as a dragsource.  I have a Canvas that is a DropTarget.  I can drag and drop the node from the Tree View to the Canvas and in the Dropped event I add a new Element, which is a ListBox, to the Canvas.  Works perfectly. 

 Now I want to drag items from the 1 listbox to another listbox in the same Canvas.  I've been having some issues with this.  The Dragging is working fine however, I can't get the dropping to work on any other ListBox.

The best I get is the Canvas shows as a DropTarget and/or the item in the ListBox, that I've selected, shows as a DropTarget

I've used your example provided with the download and cannot get it to work.  Any help would appreciated.  It is probably something silly.

Thank you and regards,

Scott