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的这一点。使用ContentControl在那里你动态绑定的内容。
Don't use a tabcontrol for this. Use a ContentControl where you dynamically bind the content.
<ContentControl Content="{Bindning MyDynamicContent}" />
的变化是存储在基于复选框的 MyDynamicContent
属性的项目。