本文介绍了具有3组框的TabControl示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以发布带有1个TAB控件且包含3个组框的WPF XAML示例项目.在组框中,有3个按钮.我正在尝试设计一种可靠的实际布局.我希望组框在主窗口扩展时自动调整或缩放.
Can someone post a WPF XAML Example Project with 1 TAB Control that contains 3 Group Boxes. Within the group boxes there are 3 buttons I am trying design this actual layout robust. I want the group boxes to auto adjust or scale as the main window expand.
谢谢.
pianoboyCoder
pianoboyCoder
推荐答案
根据您的描述,尝试最简单的布局代码:
According to your description,try the most simple layout code:
<TabControl>
<!--item1-->
<TabItem Height="30" Width="60" Header="item1">
<GroupBox>
<Grid>
<Button Height="30" Width="60" Content="button1" />
</Grid>
</GroupBox>
</TabItem>
<!--item2-->
<TabItem Height="30" Width="60" Header="item2">
<Grid>
<Button Height="30" Width="60" Content="button2" />
</Grid>
</TabItem>
<!--item3-->
<TabItem Height="30" Width="60" Header="item3">
<Grid>
<Button Height="30" Width="60" Content="button3" />
</Grid>
</TabItem>
</TabControl>
如果我有任何误会,请告诉我.
If I have any misunderstanding, please let me know.
最好的问候,
鲍勃
这篇关于具有3组框的TabControl示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!