<Window x:Class="TextBoxValidation.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Children 属性应用范例" Height="249" Width="314" FontSize="14">
    <Grid Name="gridRoot">
        <Label Content="姓名：" Height="28" HorizontalAlignment="Left" Margin="12,32,0,0" Name="label1" VerticalAlignment="Top" />
        <Label Content="入职时间：" Height="28" HorizontalAlignment="Left" Margin="12,66,0,0" Name="label2" VerticalAlignment="Top" />
        <Label Content="月薪：" HorizontalAlignment="Left" Margin="12,100,0,0" Name="label3" Height="28" VerticalAlignment="Top" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="89,37,0,0" Name="txtName" VerticalAlignment="Top" Width="156" Tag="姓名" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="89,71,0,0" Name="txtDate" VerticalAlignment="Top" Width="156" Tag="入职时间" />
        <TextBox Height="23" HorizontalAlignment="Left" Margin="89,105,0,0" Name="txtSalary" VerticalAlignment="Top" Width="156" Tag="月薪" />
        <Button Content="送出" Height="23" HorizontalAlignment="Left" Margin="89,148,0,0" Name="button1" VerticalAlignment="Top" Width="75" Click="button1_Click" />
        <Button Content="取消" Height="23" HorizontalAlignment="Left" Margin="170,148,0,0" Name="button2" VerticalAlignment="Top" Width="75" />
    </Grid>
</Window>
