2
我正在寻找一个示例或任何现成的解决方案,我可以将其集成到现有应用程序中,并使用多拖放功能。当涉及将多个项目从ListBox控件拖放到另一个ListBox时,我在互联网上找到的大多数解决方案都不起作用。任何人都可以指出我的解决方案?我使用WPF - C# - MVVMWPF中的多拖放 - 示例/示例/教程?
感谢,
我正在寻找一个示例或任何现成的解决方案,我可以将其集成到现有应用程序中,并使用多拖放功能。当涉及将多个项目从ListBox控件拖放到另一个ListBox时,我在互联网上找到的大多数解决方案都不起作用。任何人都可以指出我的解决方案?我使用WPF - C# - MVVMWPF中的多拖放 - 示例/示例/教程?
感谢,
检查这有助于
http://www.codeproject.com/KB/WPF/WPF_MultiSelect_DragDrop.aspx
编辑
的GongSolutions.Wpf.DragDrop library是一个WPF拖放框架。它具有以下特点:
* 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.
试试看
我不能在MVVM使用这个..整个代码是在后面的代码..加上例子只显示拖放在单个下降列表框 – 2011-01-10 14:57:02