多拖放在WPF - 示例/采样/教程? [英] Multi Drag Drop in WPF -- Example/Sample/Tutorial?
问题描述
我要寻找一个例子或任何现成的解决方案,我可以在我现有的应用程序集成,并使用多重拖放功能。我的大多数互联网上找到了解决办法,当谈到从列表框一样到另一个列表框控件拖放多个项目下探不能很好地工作。任何人都可以指向我一个解决方案吗?我使用WPF - C# - MVVM
I am looking for an example or any ready made solution which I can integrate in my existing application and use the multi drag and drop functionality. Most of the solutions I found on internet doesn't work well when it comes to dragging and dropping of multiple items from a control like ListBox to another ListBox. Can anyone point me to a solution? I am using WPF - C# - MVVM
谢谢,
推荐答案
检查这有助于
HTTP: //www.codeproject.com/KB/WPF/WPF_MultiSelect_DragDrop.aspx
修改
借助 GongSolutions.Wpf.DragDrop库是一个WPF的拖放框架。它具有以下特点:
The GongSolutions.Wpf.DragDrop library is a drag'n'drop framework for WPF. It has the following features:
* Works with MVVM : the logic for the drag and drop can be placed in a ViewModel. No code needs to be placed in codebehind, 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 controls.
* Works with TreeViews.
* Can insert an item into a collection, or drop one item onto another.
* Can display Adorners to give the user visual feedback of the operation in progress.
* Has sensible defaults so that you have to write less code for common operations.
试试看。
Give it a try
这篇关于多拖放在WPF - 示例/采样/教程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!