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>

 

--其他的一些布局方式

 

posted @ 2015-06-27 22:11  XCml  阅读(369)  评论(0编辑  收藏  举报