一、ScrollViewer

 通常用来封装布局的滚动条

<ScrollViewer>
<TextBox Width="200" Height="500"></TextBox>
</ScrollViewer>

 

(7)WPF 容器控件_封装

 

二、GroupBox

(7)WPF 容器控件_选项卡_02

<GroupBox Header="选项" Width="80" Height="80">
<StackPanel>
<RadioButton>中</RadioButton>
<RadioButton>日</RadioButton>
<RadioButton>韩</RadioButton>
</StackPanel>
</GroupBox>

 

三、TabItem

 选项卡

<TabControl Width="200" Height="200">
<TabItem Header="第一页">
</TabItem>
<TabItem Header="第二页">
</TabItem>
</TabControl>

(7)WPF 容器控件_封装_03

 

四、Expander

伸缩面板

<Expander Width="200" Height="200">
<StackPanel>
<Label Height="30">hello</Label>
<TextBox Height="20" Margin="3"></TextBox>
</StackPanel>
</Expander>

(7)WPF 容器控件_选项卡_04