从列表框拖放选项到树视图 [英] Drag and drop option from listbox to treeview

查看:60
本文介绍了从列表框拖放选项到树视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



如果你完成了这个任务我们需要发送一些示例代码我们需要将多个项目从列表框中拖放到Treeview并从中删除如果出现错误的话,请查看。



我尝试了什么:



列表框到列表框我可以拖放但这不是我的完美要求所以从列表框到树视图

Hi Guys,

Please could you send some sample code if you have done this task we need to drag and drop multiple items from listbox to Treeview and delete from treeview if something dropped wrongly.

What I have tried:

Listbox to listbox i can able to drag and drop but that is not the perfect requirement for me so looking from listbox to treeview

推荐答案

你必须在你的列表中实现drop handlers树视图根据提供的数据,放置位置和想要的操作进行操作。



请参阅 WPF TreeView控件中的拖放功能 [ ^ ]以获取处理程序的示例。
You have to implement drop handlers in your tree view that acts according to the provided data, the drop position, and the wanted actions.

See Drag and Drop Feature in WPF TreeView Control[^] for an example of the handlers.


这篇关于从列表框拖放选项到树视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆