Have you used this awesome WPF drag-and-drop library?

Have you used this awesome WPF drag-and-drop library?

A framework that makes it easier to use drag-and-drop functionality in WPF

Last updated 4/19/2022 9:56 PM
沙漠尽头的狼
2 min read
Category
WPF
Topic
WPF Open Source Project
Tags
.NET WPF Drag and Drop

gong-wpf-dragdrop

GongSolutions.WPF.DragDrop

A framework that makes it easier to use drag-and-drop functionality in WPF

Supports .NET Framework 4.6.2+, .NET Core 3.1, .NET 5 and .NET 6 (Windows only)


mainstatus devstatus


1. Features

  1. Works with MVVM: Drag-and-drop logic can be placed in the ViewModel. Use attached properties to bind to drag-and-drop handling methods in the ViewModel without putting related code in the code-behind.
  2. Supports multi-selection.
  3. Can drag data within the same control to reorder, or between different controls.
  4. Works with ListBox, ListView, TreeView, DataGrid, and any other ItemsControl.
  5. Can insert, move, or copy data items into the same or another control (same data item type) collection.
  6. Can display adorners to provide visual feedback for the ongoing operation.
  7. Can show a preview of the dragged item (preview always visible).
  8. Has sensible defaults, so you write less code for common operations.

2. Let's Get Started

3. License

Copyright by Jan Karger, Steven Kirk and other contributors.

GongSolutions.WPF.DragDrop is licensed under the BSD 3-Clause License. See the LICENSE file for details.

4. Screenshots of Some Operations

gif01

screenshot01

screenshot02

screenshot03

screenshot04

gif02

5. Repository

Author: Jan Karger, Steven Kirk

License: BSD 3-Clause License

Repository: https://github.com/punker76/gong-wpf-dragdrop

screenshot04

Keep Exploring

Related Reading

More Articles
Same category / Same tag 9/13/2025

Migration Series from WPF to Avalonia: Why I Must Migrate My WPF Application to Avalonia

In the past few years, our host computer software has mainly been developed using WPF and WinForm . These technologies work well on the Windows platform and have accompanied us from small-scale trial production to the current stage of large-scale delivery. However, with business development and changes in customer requirements, the single Windows technology stack has gradually become a hurdle we must overcome.

Continue Reading
Same category / Same tag 1/26/2025

Implementing Internationalization in WPF Using Custom XML Files

This article details the method of implementing internationalization in WPF applications using custom XML files, including installing the necessary NuGet packages, dynamically retrieving the language list, dynamically switching languages, using translated strings in code and XAML interfaces, and provides a source code link to help developers easily achieve internationalization in WPF applications.

Continue Reading