如何在2个treelistview对象之间拖动/删除元素 [英] How to drag / drap an element between 2 treelistview objects
本文介绍了如何在2个treelistview对象之间拖动/删除元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在2个TreeListView对象之间拖放1个元素。
这两个树是通过不同的绑定构建的对象类型。
我正在使用WPF和DevExpress库。
感谢您的支持
我是什么尝试过:
我尝试过很多事件,比如DragOver,DragDrop ......但我没有成功
我imgine我必须一次进行转换...
解决方案
解决这个问题并不简单,但查找一些示例应该有所帮助。如果树视图似乎是一个太复杂的野兽,请考虑在2个更简单的控件(例如2个列表框)之间执行拖放操作:
- Drag& amp;下载WPF ...端到端解释.. - Jaime Rodriguez [ ^ ]
- WPF TreeView控件中的拖放功能 [ ^ ] < br $> b $ b
- DotNet体验:WPF TreeView - Drag'n'Drop [ ^ ]
- 在C#for V中的TreeView示例中拖放Windows isual Studio 2008 [ ^ ]
Hi,
How to drag and drop 1 element between 2 TreeListView objects.
The 2 trees are builds by binding with different object types.
I'm using WPF with DevExpress library.
Thank you for your support
What I have tried:
I tried with many events like DragOver, DragDrop ... but I didn't succed
I imgine I have to do the conversion at one time...
解决方案
Its not simple to solve this but looking up some samples should help. Consider implementing drag and drop beween 2 simpler controls (eg. 2 listboxes) if the tree view seems to be a too complex beast to start with:
- Drag & Drop in WPF … Explained end to end .. – Jaime Rodriguez[^]
- Drag and Drop Feature in WPF TreeView Control[^]
- The DotNet Experience: WPF TreeView – Drag ‘n‘ Drop[^]
- Windows Drag and Drop within a TreeView sample in C# for Visual Studio 2008[^]
这篇关于如何在2个treelistview对象之间拖动/删除元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文