Reputation: 725
I have two ListBox
in WPF application. One is the source second is the destination. I took the help from the article http://dotnetslackers.com/ADO_NET/re-191632_Generic_WPF_Drag_and_Drop_Adorner.aspx
Now I have managed to perform the drag and drop.
Now I have one feature to implement in which if we drop any item over an existing one, it will replace the existing item with the current dragged item.
Please guide.
Upvotes: 1
Views: 4652
Reputation: 10244
You may want to look at Gong Solutions Drag/Drop for WPF, the guide it uses an adorner and should be able to show you how to remove the old item and add a new one, as @kenny suggested.
Upvotes: 1