<Window x:Class="MyLoginForm.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="个人数据窗体" Height="347" Width="497" FontSize="14">
    <Grid>
        <Label Content="请输入姓名及密码：" Height="28" HorizontalAlignment="Left" Margin="33,20,0,0" Name="label1" VerticalAlignment="Top" />
        <Label Content="名(_F)：" Height="28" HorizontalAlignment="Left" Margin="33,97,0,0" Name="label3" VerticalAlignment="Top" TabIndex="2" Target="{Binding ElementName=txtFirstname}" />
        <Label Content="姓(_L)：" Height="28" HorizontalAlignment="Left" Margin="33,63,0,0" Name="label2" VerticalAlignment="Top" TabIndex="0" Target="{Binding ElementName=txtLastname}" />
        <TextBox Height="27" HorizontalAlignment="Left" Margin="107,99,0,0" Name="txtFirstname" VerticalAlignment="Top" Width="159" TabIndex="3" TextChanged="txtFirstname_TextChanged" />
        <TextBox Height="27" HorizontalAlignment="Left" Margin="107,65,0,0" Name="txtLastname" VerticalAlignment="Top" Width="159" TabIndex="1" TextChanged="txtLastname_TextChanged" />
        <TextBox Height="99" HorizontalAlignment="Left" Margin="33,175,0,0" Name="txtMessage" VerticalAlignment="Top" Width="398" IsReadOnly="True" IsEnabled="False" />
        <Button Content="确定(_O)" Height="29" HorizontalAlignment="Left" Margin="335,96,0,0" Name="btnOK" VerticalAlignment="Top" Width="96" Click="btnOK_Click" TabIndex="6" IsEnabled="False" />
        <Button Content="取消(_C)" Height="29" HorizontalAlignment="Left" Margin="335,130,0,0" Name="btnCancel" VerticalAlignment="Top" Width="96" TabIndex="7" Click="btnCancel_Click" />
        <Label Content="密码(_P)：" Height="28" HorizontalAlignment="Left" Margin="33,131,0,0" Name="label4" VerticalAlignment="Top" TabIndex="4" Target="{Binding ElementName=password}" />
        <PasswordBox Height="27" HorizontalAlignment="Left" Margin="107,132,0,0" Name="password" VerticalAlignment="Top" Width="160" TabIndex="5" />
    </Grid>
</Window>
