WPF Tab控件任何选项卡 [英] WPF Tab Control With No Tabs
本文介绍了WPF Tab控件任何选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想有类似标签的控制,但没有TabStrip的部分控制 并在标签被组合框,而不是改变。 如何我做到这一点?
I would like to have a control similar to tab control but without the "TabStrip" part and have the tabs be changed by a combo box instead. how to I make this happen?
我想,答案就在那里我只是无法正确词组的英文内容。
I guess that the answer is out there I just fail to correctly phrase it in English.
推荐答案
不要使用TabControl的这一点。使用<一个href="http://msdn.microsoft.com/en-us/library/system.windows.controls.contentcontrol.aspx">ContentControl在那里你动态绑定的内容。
Don't use a tabcontrol for this. Use a ContentControl where you dynamically bind the content.
<ContentControl Content="{Bindning MyDynamicContent}" />
的变化是存储在基于复选框的 MyDynamicContent
属性的项目。
这篇关于WPF Tab控件任何选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文