gong-wpf-dragdrop

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


Keywords
.NET, Library, Toolkit, UI, WPF, Windows, XAML, c-sharp, drag, drag-and-drop, drag-drop, drop, gong-wpf-dragdrop, gui, hacktoberfest, open-source, oss
License
BSD-3-Clause
Install
Install-Package gong-wpf-dragdrop -Version 3.2.1

Documentation

Stand With Ukraine


gong-wpf-dragdrop

GongSolutions.WPF.DragDrop

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

Supporting .NET Framework 4.6.2+, .NET Core 3.1, .NET 5 and .NET 6 (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