c# - WPF 中的多拖放——示例/示例/教程?

标签 c# wpf mvvm

我正在寻找可以集成到现有应用程序中并使用多拖放功能的示例或任何现成的解决方案。我在互联网上找到的大多数解决方案在将多个项目从 ListBox 等控件拖放到另一个 ListBox 时效果不佳。谁能指出我的解决方案?我正在使用 WPF - C# - MVVM

谢谢,

最佳答案

检查这是否有帮助

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. 

试一试

关于c# - WPF 中的多拖放——示例/示例/教程?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4646751/

相关文章:

WPF DataGridTextColumn 工具提示

c# - WPF窗口无法从Revit ExternalCommand初始化

wpf - MVVM 和 TextBox 的 SelectedText 属性

c# - WPF : Re-usable template for image buttons?

c# - LINQ:从 linq 中调用方法?,我的方法返回匿名类型

c# - 将列写入 CSV 文件 c#

ios - 如何使用 MVVM 在 MonoTouch TableView 中绑定(bind)删除按钮

c# - 以编程方式更新 ClickOnce 应用程序的部署 list 会导致缺少 <compatibleFrameworks> 元素,这在 4.0 中是必需的

c# - 如何动态使用 SqlFunctions.PatIndex

c# - 垂直分组 - WPF DataGrid 或 ListView