<DockPanel LastChildFill="False">
<Button DockPanel.Dock="Top" x:Name="button1" Content="Top" Width="Auto" Background="AliceBlue">
<Button DockPanel.Dock="Bottom" x:Name="button2" Content="Bottom" Width="Auto" Background="Teal" />
<Button DockPanel.Dock="Left" x:Name="button3" Content="Left" Width="Auto" Background="YellowGreen" />
<Button DockPanel.Dock="Right" x:Name="button4" Content="Right" Width="Auto" Background="RoyalBlue" />
<Button DockPanel.Dock="Bottom" x:Name="button5" Content="Bottom (2)" Width="Auto" Background="Goldenrod" />
</DockPanel>
|