将xml文件拖到树视图中 [英] Drag an xml file into a treeview

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

问题描述

可以将xml文件拖放到树视图中。如果有人可以共享上面的代码。

解决方案

Hello Arun,


这是一个Windows窗体应用程序,您可以参考:
如何填充在Visual C#2005或Visual C#.NET中使用XML数据的TreeView控件


如果是WPF应用程序,则为
http://blogs.msdn。 com / b / jaimer / archive / 2007/07/12 / drag-drop-in-wpf-explanation-end-to-end.aspx

http://stackoverflow.com/questions/1026179/drag-drop-in-treeview-wpf


希望他们帮忙。


祝福,b
Helen Zhou


此respo nse包含对第三方万维网站点的引用。 Microsoft提供此信息是为了方便您。 Microsoft不控制这些网站
并且未测试在这些网站上找到的任何软件或信息;因此,Microsoft不能就其中发现的任何软件或信息的质量,安全性或适用性做出任何陈述。使用互联网上的任何
软件存在固有的危险,并且Microsoft提醒您在从互联网上检索任何软件之前确保您完全了解风险。


Can an xml file be dragged and dropped into a treeview.If so can someone share the code for the above.

解决方案

Hello Arun,

Is this a Windows Forms application, you can refer to : How to populate a TreeView control with XML data in Visual C# 2005 or in Visual C# .NET

If it is a WPF application,
http://blogs.msdn.com/b/jaimer/archive/2007/07/12/drag-drop-in-wpf-explained-end-to-end.aspx
http://stackoverflow.com/questions/1026179/drag-drop-in-treeview-wpf

Hope them help.

Best wishes,
Helen Zhou

This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


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

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