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>

 

--其他的一些布局方式

 Grid表格属性

相关文章:

  • 2022-02-20
  • 2021-08-29
  • 2021-08-22
  • 2022-12-23
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2022-12-23
  • 2021-12-05
  • 2021-04-23
  • 2021-10-09
  • 2022-12-23
  • 2021-08-26
相关资源
相似解决方案