在树视图的子节点上单击时,必须在wpf中打开相应的表单 [英] on click of child node of tree view the repective form must be opened in wpf

查看:57
本文介绍了在树视图的子节点上单击时,必须在wpf中打开相应的表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们正在Visual Studio中创建一个wpf应用程序,我们正在其中使用treeview.单击树视图的子节点时,必须打开相应的窗口.
因此,请告诉解决方案我们该怎么做.

Plzzz快速回复

Hi,
We are creating a wpf application in Visual Studio.We are using treeview in it.On click of child node of tree view the respective window must be opened.
So please tell the solution how we can do it.

Plzzz reply fast

推荐答案

您可以使用此事件
you can use this event
<treeview treeviewitem.expanded="TreeView_Expanded" />            



如果树中的任何节点打开(扩展),都会触发该事件



if any node in the tree opened (Expanded) this event will be fired


这篇关于在树视图的子节点上单击时,必须在wpf中打开相应的表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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