本文介绍了用主窗口展开tabcontrol的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨当它最大化时,我需要用主窗口扩展tabcontrol.
帮助我在主窗口中调整TabControl的大小.我尝试了如下方法...
< Window x:Class =" WpfApplication1.MainWindow" span> xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation" span> xmlns:x =" http://schemas.microsoft.com/winfx/2006/xaml" span> 标题 =" MainWindow" 高度 =" 350" Width =" 525" >> < 网格 > < TabControl 高度 =" 310" 名称 =" tabControl1" 宽度 =" 501" VerticalAlignment =" 拉伸" HorizontalAlignment =" 拉伸" > < /TabControl > < /Grid > < /Window >
.....................?
解决方案
hi
i need to expand the tabcontrol with main window,when it maximize.
help me to resize the tabcontrol with the main window. i tried something as follows...
<Window x:Class="WpfApplication1.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid > <TabControl Height="310" Name="tabControl1" Width="501" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" > </TabControl> </Grid> </Window>
.....................?
解决方案
这篇关于用主窗口展开tabcontrol的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!