Back to Browse

ListView Ordering - WPF DRAG DROP TUTORIAL #5

11.5K views
Oct 16, 2021
16:22

Learn how to reorder list view items in a WPF MVVM application using drag and drop. I also demonstrate a fantastic, simple solution for handling hit test issues for DragLeave events. TIMESTAMPS: 0:00 - Introduction 0:35 - How Reordering Will Work 1:11 - Handling DragOver on List View Items 3:35 - Handling DragOver in the View Model 4:59 - Implementing Insert Logic 7:08 - Passing DragOver Data to the View Model 10:40 - Fixing Hit Testing 13:38 - Adding List View Items on DragOver 14:55 - Conclusion PROPERTY CHANGED SNIPPET: https://singletonsean.s3.amazonaws.com/propchange.snippet SOURCE CODE: https://github.com/SingletonSean/wpf-tutorials/tree/master/DragDropDemo OTHER LINKS: Become a Member: https://www.youtube.com/channel/UC7X9mQ_XtTYWzr9Tf_NYcIg/join Donations: https://www.paypal.com/biz/fund?id=UBZCZWX2UVWJE

Download

1 formats

Video Formats

360pmp427.9 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

ListView Ordering - WPF DRAG DROP TUTORIAL #5 | NatokHD