Применение диспетчера компоновки в WPF

Необходимо, используя диспетчер компоновки в WPF, реализовать приложение со следующим поведением при изменении размеров окна: enter image description here

Вот код, который есть на данный момент, однако как можно сдвинуть первый блок вниз и сохранить поведение при изменении окна?

 <Grid>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="250"/>
        <ColumnDefinition Width="450"/>
    </Grid.ColumnDefinitions>
        <WrapPanel Orientation="Vertical" Grid.Column="0" >
        <Button x:Name="Btn1"
            FontSize="17"
            Content="1"
            Foreground="Black"  Height="34" Width="34" 
            Background="Yellow"/>
        <Button x:Name="Btn2"
            FontSize="17"
            Content="2"
            Foreground="Black" Height="34" Width="34"  
            Background="Red"/>
        <Button x:Name="Btn3"
            FontSize="17"
            Content="3"
            Foreground="Black" Height="34" Width="34" 
            Background="Green"/>
        <Button x:Name="Btn4"
            FontSize="17"
            Content="4"
            Foreground="Black"  Height="34" Width="34" 
            Background="Blue"/>
        <Button x:Name="Btn5"
            FontSize="17"
            Content="5"
            Foreground="Black"  Height="34" Width="34" 
            Background="Gray"/>
        <Button x:Name="Btn6"
            FontSize="17"
            Content="6"
            Foreground="Black" Height="34" Width="34"
            Background="LightGray" />
    </WrapPanel>
    
    <WrapPanel Orientation="Vertical" Grid.Column="1" Margin="30,0,0,0">
            <Button x:Name="Btn7"
            FontSize="17"
            Content="1"
            Foreground="Black" 
            Background="Yellow" Height="34" Width="34" />
    <Button x:Name="Btn8"
            FontSize="17"
            Content="2"
            Foreground="Black" Height="34" Width="34"  
            Background="Red" />
    <Button x:Name="Btn9"
            FontSize="17"
            Content="3"
            Foreground="Black" Height="34" Width="34" 
            Background="Green"/>
    <Button x:Name="Btn10"
            FontSize="17"
            Content="4"
            Foreground="Black"  Height="34" Width="34" 
            Background="Blue"/>
        <Button x:Name="Btn11"
            FontSize="17"
            Content="5"
            Foreground="Black"  Height="34" Width="34" 
            Background="Gray"/>
        <Button x:Name="Btn12"
            FontSize="17"
            Content="6"
            Foreground="Black" Height="34" Width="34"
            Background="LightGray" />
    </WrapPanel>
</Grid>

И вот результат:

enter image description here


Ответы (0 шт):