<Window x:Class="Layout.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Layout" Height="430" Width="614" Background="Black">
    <Grid Margin="0">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
            <ColumnDefinition Width="1*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="1*"/>
        </Grid.RowDefinitions>
        <Label Content="Canvas" Grid.Row="0" Grid.Column="0" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Foreground="White" Background="Black"/>
        <Label Content="DockPanel" Grid.Row="0" Grid.Column="1" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Foreground="White" Background="Black" />
        <Label Content="StackPanel" Grid.Row="0" Grid.Column="2" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Foreground="White" Background="Black" />
        <Label Content="WrapPanel" Grid.Row="2" Grid.Column="0" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Foreground="White" Background="Black"/>
        <Label Content="UniformGrid" Grid.Row="2" Grid.Column="1" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Foreground="White" Background="Black" />
        <Label Content="Grid" Grid.Row="2" Grid.Column="2" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Foreground="White" Background="Black" />
        <Canvas Grid.Row="1" Grid.Column="0" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" Margin="0,0,5,0"  >
            <Button Content="Button 1" Canvas.Left="20" Canvas.Top="25" Width="75"/>
            <Button Content="Button 2" Canvas.Left="49" Canvas.Top="62" Width="75"/>
            <Button Content="Button 3" Canvas.Left="90" Canvas.Top="97" Width="75"/>
        </Canvas>
        <DockPanel Grid.Row="1" Grid.Column="1" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" Margin="0,0,5,0"  >
            <Button Content="Button 1 (Top)" DockPanel.Dock="Top" />
            <Button Content="Button 2 (Bottom)" DockPanel.Dock="Bottom" />
            <Button Content="Button 3"  />
        </DockPanel>
        <StackPanel Grid.Row="1" Grid.Column="2" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"  >
            <Button Content="Button 1"/>
            <Button Content="Button 2"/>
            <Button Content="Button 3"/>
        </StackPanel>
        <WrapPanel Grid.Row="3" Grid.Column="0" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" Margin="0,0,5,0"  >
            <Button Content="Button 1" />
            <Button Content="Button 2 (W=120)" Width="120"/>
            <Button Content="Button 3" />
        </WrapPanel>
        <UniformGrid Grid.Row="3" Grid.Column="1" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}" Margin="0,0,5,0">
            <Button Content="Button 1"/>
            <Button Content="Button 2"/>
            <Button Content="Button 3"/>
        </UniformGrid>
        <Grid Grid.Row="3" Grid.Column="2" Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}">
            <Grid.RowDefinitions>
                <RowDefinition Height="30*"/>
                <RowDefinition Height="119*"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="63*"/>
                <ColumnDefinition Width="127*"/>
            </Grid.ColumnDefinitions>
            <Button Content="Button 1 (0,0)" Grid.Row="0" Grid.Column="0" />
            <Button Content="Button 2 (0,1)" Grid.Row="0" Grid.Column="1" />
            <Button Content="Button 3 (1,1)" Grid.Row="1" Grid.Column="1" />
        </Grid>
    </Grid>
</Window>
