我正在寻找一个示例或任何现成的解决方案,我可以将其集成到现有的应用程序中并使用多重拖放功能。当涉及到将多个项目从 ListBox 之类的控件拖放到另一个 ListBox 时,我在互联网上找到的大多数解决方案都不能很好地工作。谁能指出我的解决方案吗?我正在使用 WPF - C# - MVVM
Thanks,
检查这是否有帮助
http://www.codeproject.com/KB/WPF/WPF_MultiSelect_DragDrop.aspx http://www.codeproject.com/KB/WPF/WPF_MultiSelect_DragDrop.aspx
EDIT
The KongSolutions.Wpf.DragDrop 库 http://code.google.com/p/gong-wpf-dragdrop/是 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.
试一试
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)