<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之中