嵌套选项卡的选定项目。 [英] Selected item for nested tab.

查看:76
本文介绍了嵌套选项卡的选定项目。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i有一个标签控件,每个tabitem包含另一个标签控件。

i设置主标签控件的项目源列表< myclass>

Hi,
i have a tab control and each tabitem contain another tab control.
i set itemsource for main tab control as list<myclass>

myclass
{
header,
isselected
list<inneritems> inneritems
}





使用绑定我使用isselected为主选项卡设置选定的标签项。

i设置内部项目作为innertab的项目源。这也工作正常。

但我无法为innert选项卡设置所选项目。





using binding i set selected tab item for my main tab using isselected.
i set inneritems as itemsource for innertab.that also working fine.
but i couldnt set selected item for innert tab.

inneritems
{
header,
isselected,
content,
}





有没有办法做到这一点???我使用wpf mvvm模式。



is there any way to do this???iam using wpf mvvm pattern.

推荐答案

http://www.wpf-tutorial.com/tabcontrol/using-the-tabcontrol/ [ ^ ]


这篇关于嵌套选项卡的选定项目。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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