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

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

A framework that makes it easier for you to use drag-and-drop functions in WPF

最后更新 4/19/2022 9:56 PM
沙漠尽头的狼
预计阅读 2 分钟
分类
WPF
专题
WPF Open Source Project
标签
.NET WPF drag

gong-wpf-dragdrop

GongSolutions.WPF.DragDrop

A framework that makes it easier for you to use drag-and-drop functions in WPF

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


mainstatus devstatus


1. characteristics

  1. MVVM配合使用:拖放逻辑可以放在ViewModel中。使用附加属性绑定到ViewModel中的拖放处理方法,而无需在代码隐藏中放置相关代码。
  2. Can be used for multiple choices.
  3. You can drag data within the same control to reorder, or you can drag data between (different) controls.
  4. 可用于 ListBox, ListView, TreeView, DataGrid 和其他任何 ItemsControl
  5. You can insert, move, or copy data items into a collection of the same/another control (same data item type).
  6. Decorators can be displayed to provide users with visual feedback of what is being done.
  7. You can display a preview of the dragged item (the preview is always visible).
  8. Has reasonable defaults, so you can write less code for common operations.

2. Let's start experiencing it

3. License

Copyright by Jan Karger, Steven Kirk and other contributors.

GongSolutions.WPF.DragDrop 基于 BSD 3-Clause 协议. 有关该协议请参考说明LICENSE.

4. Screenshots of some operations

gif01

screenshot01

screenshot02

screenshot03

screenshot04

gif02

5. warehouse

Authors: Jan Karger, Steven Kirk

License:BSD 3-Clause License

仓库地址:https://github.com/punker76/gong-wpf-dragdrop

screenshot04

Keep Exploring

延伸阅读

更多文章
同分类 / 同标签 9/13/2025

Migration from WPF to Avalonia series: Why I have to migrate WPF programs to Avalonia

In the past few years, our host computer software has been mainly developed using WPF and WinForm. These technologies are really easy to use on the Windows platform, and they have also accompanied us through the stage of small-scale trial production to today's large-scale delivery. However, with the development of business and changes in customer needs, the single Windows technology stack has gradually become a hurdle that we must overcome.

继续阅读
同分类 / 同标签 1/26/2025

WPF internationalizes with custom XML files

This article describes in detail the methods of using custom XML files to achieve internationalization in WPF programs, including installing the necessary NuGet package, dynamically obtaining language lists, dynamically switching languages, using translation strings in code and xaml interfaces, etc. It also provides source code links to help developers easily internationalize WPF applications.

继续阅读