<Window x:Class="IfSample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="练习7-1: 使用If ..Then語法" Height="360" Width="497" FontSize="18">
    <Grid>
        <Label Content="姓名：" Height="38" HorizontalAlignment="Left" Margin="28,25,0,0" Name="label1" VerticalAlignment="Top" Width="94" FontSize="18" />
        <Label Content="入职时间：" FontSize="18" Height="38" HorizontalAlignment="Left" Margin="28,69,0,0" Name="label2" VerticalAlignment="Top" Width="94" />
        <Label Content="基本月薪：" FontSize="18" Height="38" HorizontalAlignment="Left" Margin="28,113,0,0" Name="label3" VerticalAlignment="Top" Width="94" />
        <TextBox Height="39" HorizontalAlignment="Left" Margin="159,27,0,0" Name="txtName" VerticalAlignment="Top" Width="269" />
        <TextBox Height="39" HorizontalAlignment="Left" Margin="159,71,0,0" Name="txtHireDate" VerticalAlignment="Top" Width="269" />
        <TextBox Height="39" HorizontalAlignment="Left" Margin="159,115,0,0" Name="txtSalary" VerticalAlignment="Top" Width="269" />
        <Button Content="计算实际领取月薪" Height="34" HorizontalAlignment="Left" Margin="159,167,0,0" Name="button1" VerticalAlignment="Top" Width="272" Click="button1_Click" />
        <TextBox Height="87" HorizontalAlignment="Left" Margin="37,212,0,0" Name="txtResult" VerticalAlignment="Top" Width="394" IsEnabled="False" IsReadOnly="True" TextWrapping="Wrap" />
    </Grid>
</Window>
