Grid表格属性

 <Grid>
        <Grid.ColumnDefinitions> <!--添加列-->
            <ColumnDefinition Width="130"/>
            <ColumnDefinition Width="130"/>
            <ColumnDefinition Width="130"/>
            <ColumnDefinition Width="130"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions> <!--添加行-->
            <RowDefinition Height="130"/>
            <RowDefinition Height="130"/>
            <RowDefinition Height="130"/>
            <RowDefinition Height="130"/>
        </Grid.RowDefinitions> <!--Grid.Column="2" Grid.Row="1" 指定button按钮在哪个地方-->
        <Button Grid.Column="2" Grid.Row="1" Content="Button" HorizontalAlignment="Center" Margin="0" VerticalAlignment="Center" Width="75"/>
    </Grid>

--其他的一些布局方式

 

原文地址:https://www.cnblogs.com/lk-kk/p/4604772.html