【发布时间】:2011-04-16 21:53:42
【问题描述】:
我正在尝试创建一个带有选项卡式界面的应用程序。现在我有这种界面
使用此代码
<Window x:Class="BMG.BackOffice.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="572" Width="776">
<TabControl>
<TabItem>
<TabItem.Header>
<TextBlock>
tab1
</TextBlock>
</TabItem.Header>
<Label>Test for tab1</Label>
</TabItem>
<TabItem>
<TabItem.Header>
<TextBlock>
tab2
</TextBlock>
</TabItem.Header>
</TabItem>
<TabItem>
<TabItem.Header>
<TextBlock>
tab3
</TextBlock>
</TabItem.Header>
</TabItem>
<TabItem>
<TabItem.Header>
<TextBlock>
tab4
</TextBlock>
</TabItem.Header>
</TabItem>
</TabControl>
我已经编写了其他窗口,我想知道是否可以在选项卡中“插入”这些窗口(选项卡的窗口)。所以替换<Label>Test for tab1</Label>
通过窗口(.xaml 文件)
感谢回复
【问题讨论】:
标签: c# wpf mdi tabbed-interface