How to implement single item DragDrop WPF Listview

2019-03-29 14:52发布

问题:

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

回答1:

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



回答2:

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.