日期:2014-05-17 浏览次数:20849 次
<Window x:Class="_2_3_线程示例.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid CellPadding="5 5 5 5 ">//这里为我自己比喻的属性 谢谢
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button Content="在行1左" Grid.Row="0" Grid.Column="0"></Button>
<Button Content="在行1右" Grid.Row="0" Grid.Column="1"></Button>
<Button Content="在行2左" Grid.Row="1" Grid.Column="0"></Button>
<Button Content="在行2右" Grid.Row="1" Grid.Column="1"></Button>
</Grid></Window>
<Grid>
<Grid.Resources>
<Style TargetType="{x:Type Button}">
<Setter Property="Margin" Value="5 5 5 5"/>
</Style>
</Grid.Resources>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>