<Window x:Class="ButtonSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Button控件范例" Height="280" Width="425" FontSize="14">
    <Grid>
        <Button Content="Button" Height="99" HorizontalAlignment="Left" Margin="43,33,0,0" Name="button1" VerticalAlignment="Top" Width="125" FontWeight="Bold" VerticalContentAlignment="Center">
            <Button.Background>
                <ImageBrush ImageSource="/ButtonSample;component/Images/112_Tick_Green_64x64_72.png" />
            </Button.Background>
        </Button>
        <Button Content="Button" FontWeight="Bold" Height="99" HorizontalAlignment="Left" Margin="228,33,0,0" Name="button2" VerticalAlignment="Top" VerticalContentAlignment="Bottom" Width="125">
            <Button.Background>
                <ImageBrush ImageSource="/ButtonSample;component/Images/112_Tick_Green_64x64_72.png" />
            </Button.Background>
        </Button>
        <TextBlock Height="36" HorizontalAlignment="Left" Margin="43,151,0,0" Name="textBlock1" Text="默认文字都居中" VerticalAlignment="Top" Width="136" />
        <TextBlock Height="50" HorizontalAlignment="Left" Margin="213,151,0,0" Name="textBlock2" Text="VerticalContentAlignment = Bottom " VerticalAlignment="Top" Width="163" TextWrapping="Wrap" TextAlignment="Center" />
    </Grid>
</Window>
