<DockPanel>
        <Grid DockPanel.Dock="Bottom" VerticalAlignment="Bottom" Height="280">
            <Grid.RowDefinitions>
                <RowDefinition Height="30"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="47*"/>
                <ColumnDefinition Width="6*" MinWidth="35"/>
                <ColumnDefinition Width="47*"/>
            </Grid.ColumnDefinitions>

<TreeView Margin="10,0,0,10" Grid.Row="1"/>

 

Grid 置于 DockPanel 中

设置第一行的高度为30,第二行的高度为 Grid.Height-30

设置第一、三列为 Grid 的宽度的 47% ,第二列为 6%,最小为35

将控件置于Cell之中

 

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2021-12-23
  • 2021-11-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-23
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
相关资源
相似解决方案