gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 11:41:29 30 4
gpt4 key购买 nike

我正在寻找可以集成到现有应用程序中并使用多拖放功能的示例或任何现成的解决方案。我在互联网上找到的大多数解决方案在将多个项目从 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/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com