Skip to content

punker76/gong-wpf-dragdrop

Repository files navigation


gong-wpf-dragdrop

GongSolutions.WPF.DragDrop

An easy to use drag'n'drop framework for WPF.

Supporting .NET Framework 4.6.2 and later, .NET 6 and later (on Windows)


mainstatus devstatus


Features

  • Works with MVVM : the logic for the drag and drop can be placed in a ViewModel. No code needs to be placed in code-behind, instead attached properties are used to bind to a drag handler/drop handler in a ViewModel.
  • Works with multiple selections.
  • Can drag data within the same control to re-order, or between (different) controls.
  • Works with ListBox, ListView, TreeView, DataGrid and any other ItemsControl.
  • Can insert, move or copy an item into a collection of the same/another control (same item type).
  • Can display Adorners to give the user visual feedback of the operation in progress.
  • Can display a preview of the dragged item (the preview is always visible).
  • Has sensible defaults so that you have to write less code for common operations.

Let's get started

License

Copyright © Jan Karger, Steven Kirk and Contributors. All rights reserved.

GongSolutions.WPF.DragDrop is provided as-is under the BSD 3-Clause License. For more information see LICENSE.

Want to say thanks?

This framework is free and can be used for free, open source and commercial applications. It's tested, used and contributed by many awesome people. So hit the magic ⭐ button, we appreciate it!!! 🙏

Become a sponsor and show your support to this open source project.

If you use GongSolutions.WPF.DragDrop as serious task, and you'd like to honor my work on it, please donate, I'll appreciate it.

Does your company use GongSolutions.WPF.DragDrop? Ask your manager or marketing team if your company would be interested in supporting this project. Your company's logo can be shown on GitHub - who doesn't want a little extra exposure?

In action

gif01

screenshot01

screenshot02

screenshot03

screenshot04

gif02

gif03