我定义了以下名为 TabControl1 的 TabControl:
<TabControl>
<TabItem Header="Cheese"> The Cheese Tab </TabItem>
<TabItem Header="Pepperoni"> The Pepperoni Tab </TabItem>
<TabItem Header="Mushrooms"> The Mushrooms Tab </TabItem>
</TabControl>
我定义了另一个 TabControl,TabControl2,它是从加载项或插件动态加载的:
<TabControl>
<TabItem Header="Anchovies"> The AnchoviesTab </TabItem>
<TabItem Header="Jalepenos"> The Jalepenos Tab </TabItem>
<TabItem Header="Rattle Snake"> The Rattle Snake Tab </TabItem>
</TabControl>
TabControl1 在 "Cheese" 项之后绑定到 TabControl2 后,TabControl1 应如下所示:
<TabControl>
<TabItem Header="Cheese"> The Cheese Tab </TabItem>
<TabItem Header="Anchovies"> The AnchoviesTab </TabItem>
<TabItem Header="Jalepenos"> The Jalepenos Tab </TabItem>
<TabItem Header="Rattle Snake"> The Rattle Snake Tab </TabItem>
<TabItem Header="Pepperoni"> The Pepperoni Tab </TabItem>
<TabItem Header="Mushrooms"> The Mushrooms Tab </TabItem>
</TabControl>