WPF从选项卡控件拖放到树视图 [英] WPF drag and drop from tab control to treeview

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

问题描述

我正在尝试编写一个配置应用程序,其中涉及将项目从各种选项卡控件拖放到树视图中.我在Google周围搜索,但找不到用于在同一控件类型之间的不同控件之间拖放的任何示例.谁能将我指向一个包含所有此类信息的位置,甚至是一本要购买的书.

I am trying to write a configuration application which involves dragging and dropping items from various tab controls to a treeview. I have googled around but can''t find any samples for dragging and dropping between different controls, only the same control type. Can anyone point me to a location that contains any of this information, even a book to buy.

推荐答案

我几乎不相信在您的所有代码示例中,所有的涉及的拖放控制属于同一类型.没关系.即使您看到的样本就是这样,您也可以放心地忽略相同类型的控件的事实.

您不希望找到可以完全解决您的问题的代码示例,对吗?您只需要使用该示例作为示例,编写自己的代码,对吗?然后要做的是使用不同的控件类型.更好的是,使用示例只是为了了解事物的工作方式.

要了解它,请从这里开始: http://msdn.microsoft.com/en-us/library/ms749074.aspx [^ ].

—SA
I would hardly believe that in all your code samples all drag-and-drop control involved are of the same type. It does not matter. Even it the samples you saw are like that, you can safely ignore the fact that the control of the same type.

You''re not hoping to find a code sample which would solve your problem completely, right? You will need just to use the sample as a sample, to write your own code, right? Then do is with different control types. Better yet, use the samples just for understanding of how things work.

To understand it, start from here: http://msdn.microsoft.com/en-us/library/ms749074.aspx[^].

—SA


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

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