(7)WPF 容器控件
一、ScrollViewer
通常用来封装布局的滚动条
<ScrollViewer> <TextBox Width="200" Height="500"></TextBox> </ScrollViewer>
二、GroupBox
<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>
四、Expander
伸缩面板
<Expander Width="200" Height="200"> <StackPanel> <Label Height="30">hello</Label> <TextBox Height="20" Margin="3"></TextBox> </StackPanel> </Expander>