所谓的潇洒

导航

WPF知识点备忘录——控件

Grid

    <Grid Margin="3,3,10,3">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="auto"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Label Name="lb1" VerticalAlignment="Center" Margin="3" FontSize="40" FontFamily="微软雅黑">褪色反射变换</Label>
        
        <StackPanel Grid.Row="4" Grid.Column="1">
        </StackPanel>
    </Grid>

StackPanel

        <!--默认竖向-->
        <StackPanel>
            <TextBlock Text="aa"/>
            <TextBlock Text="bb"/>
        </StackPanel>
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="cc"/>
            <TextBlock Text="dd"/>
        </StackPanel>

 

posted on 2023-02-25 16:11  所谓的潇洒  阅读(13)  评论(0编辑  收藏  举报