1

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.

2
  • Can't you just remove any matching item from the list? Commented Dec 13, 2012 at 12:30
  • @kenny I actually remove the old item as soon as its dropped on the destination listbox. Its just like moving one item to another. Commented Dec 14, 2012 at 4:10

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

I will use the Gong Framework link provided by you and try to implement it and then get back to you. Thanks for your reply!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.