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