2011-01-10 25 views
2

私は、既存のアプリケーションに統合して複数のドラッグ&ドロップ機能を使用することができるサンプルまたは任意の既成のソリューションを探しています。 ListBoxのようなコントロールから別のListBoxに複数のアイテムをドラッグ&ドロップすると、インターネット上で見つけたソリューションのほとんどがうまくいきません。誰かが私に解決策を教えてもらえますか? C#の - - 私は、WPFを使用していますMVVMWPFのマルチドラッグドロップ - サンプル/サンプル/チュートリアル?

おかげで、

答えて

2

チェックこれは

http://www.codeproject.com/KB/WPF/WPF_MultiSelect_DragDrop.aspx

EDIT

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でこれを使用することはできません。..プラスの例では、単一内でのみドラッグ&ドロップを示している

+0

を試してみますリストボックス –

+0

私はすでにこの解決策を試しました..それはそれが実際に複数のドラッグアンドドロップで動作しないと言っています...あなた自身がそれを検証して何を見つけたか教えてください –

+0

ここでhttpで問題を議論できます://code.google.com/p/gong-wpf-dragdrop/issues/list – biju