Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement single item DragDrop WPF Listview in MVVM way?

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

like image 801
Relativity Avatar asked Oct 07 '11 17:10

Relativity


2 Answers

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

like image 108
Nivid Dholakia Avatar answered Nov 09 '22 23:11

Nivid Dholakia


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.

like image 26
Rachel Avatar answered Nov 09 '22 23:11

Rachel