Drag and Drop with WPF ListBox

自作多情 提交于 2019-12-11 12:48:22

问题


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.


回答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.



来源:https://stackoverflow.com/questions/13859797/drag-and-drop-with-wpf-listbox

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!