How to implement single item DragDrop WPF Listview

2019-03-29 14:51发布

I have two listviews (and Gridview inside that) inmy WPF/MVVM application. How would I implement Drag/Drop for single item in this case?

Any help would be appreciated. Thanks

2条回答
Deceive 欺骗
2楼-- · 2019-03-29 15:37

Usually for DragDrop I use the code found at Bea Stollnitz's Blog. It's simple, easy to understand, and easy to modify as needed.

查看更多
爷、活的狠高调
3楼-- · 2019-03-29 15:50

I have made a sample application where you can have an idea about how it works with the MVVM i have ItemsControl ListView and another Listview Where you can drag and drop single item. you can find it here a project named DragDropItems Credit Bea Stollnitz's

查看更多
登录 后发表回答