1.绝对布局
Canvas.Left="40" Canvas.Top="200"
<Canvas>
<CheckBox Canvas.Left="40" Canvas.Top="200">ok</CheckBox>
</Canvas>
2.相对布局
auto,*,minHeight
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0" ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<StackPanel Grid.Row="1" Grid.Column="1">
<TextBlock Text="hello 11" FontSize="50"></TextBlock>
</StackPanel>
<StackPanel Grid.Row="1" Grid.Column="2">
<TextBlock Text="hello 12" FontSize="50"></TextBlock></StackPanel>
</Grid>