Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/295.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# WPF中的多拖放--示例/示例/教程?_C#_Wpf_Mvvm - Fatal编程技术网

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

C# WPF中的多拖放--示例/示例/教程?,c#,wpf,mvvm,C#,Wpf,Mvvm,我正在寻找一个例子或任何现成的解决方案,我可以集成在我现有的应用程序,并使用多拖放功能。我在internet上找到的大多数解决方案在将多个项目从一个控件(如ListBox)拖放到另一个ListBox时都不起作用。有人能给我指点解决办法吗?我正在使用WPF-C#-MVVM 谢谢,检查这是否有帮助 编辑 是WPF的拖放框架。它具有以下特点: * Works with MVVM : the logic for the drag and drop can be placed in a ViewMode

我正在寻找一个例子或任何现成的解决方案,我可以集成在我现有的应用程序,并使用多拖放功能。我在internet上找到的大多数解决方案在将多个项目从一个控件(如ListBox)拖放到另一个ListBox时都不起作用。有人能给我指点解决办法吗?我正在使用WPF-C#-MVVM

谢谢,

检查这是否有帮助

编辑

是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中使用此功能。。整个代码都在代码隐藏中。。另外,该示例仅显示单个列表框中的拖放操作,我已经尝试过此解决方案。。它的描述是这样的,但实际上,多次拖放不起作用。。你自己来验证一下,让我知道你发现了什么。你可以在这里讨论问题