Treeview节点选择更改选项卡控制选项卡 [英] Treeview Node selection change tabcontrol tab
本文介绍了Treeview节点选择更改选项卡控制选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有某些子项的树状视图,可以在tabcontrol中显示.我希望能够在树视图中单击一个树视图项,并使我的tabcontrol自动切换到选项卡或在选项卡中打开该项目.
有谁知道如何做到这一点?它不一定必须是tabcontrol,它可以是任何种类的内容控件.我正在考虑无论如何都要更改它....
解决方案
通过在树形视图中捕获选择更改事件,然后在其中执行任何操作? /blockquote>
Hi I have a treeview with certain children that can be displayed in a tabcontrol. I want to be able to click on a treeview item in the treeview and have my tabcontrol automatically switch to or open up that item in a tab.
Does anyone know how to do this? It does not necessarily have to be a tabcontrol, it could be any kind of content control. I''m thinking about changing that anyway....解决方案By catching the selection changed event on the tree view and then doing whatever you want in it ?
这篇关于Treeview节点选择更改选项卡控制选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文