<Window x:Class="WpfMSNGame.Login"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MSN 用户登录" Height="199" ResizeMode="NoResize" Width="403"
WindowStartupLocation="CenterScreen" Icon="images/logo.ico"
WindowStyle="SingleBorderWindow" Loaded="Window_Loaded">
<Grid>
<!-- 登录按钮的配置代码 -->
<Button Height="25" HorizontalAlignment="Right" Margin="0,0,21,16"
Name="btnLogin" VerticalAlignment="Bottom" Width="61"
Click="btnLogin_Click">登录</Button>
<!-- MSN帐号输入框的配置代码 -->
<TextBox Height="30" Margin="112,21,21,0" Name="txtAccount" FontSize="15"
VerticalAlignment="Top" KeyDown="txtAccount_KeyDown"></TextBox>
<!-- 密码输入框的配置代码 -->
<PasswordBox Margin="112,68,21,67" Name="txtPassword" ClipToBounds="False"
FontSize="15" KeyDown="txtPassword_KeyDown" />
<!-- 其他控件的配置代码 -->
<Label Height="30" HorizontalAlignment="Left" Margin="20,21,0,0" Name="label1"
VerticalAlignment="Top" Width="88">电子邮件地址:</Label>
<Label HorizontalAlignment="Left" Margin="20,70,0,32" Name="label2" Width="88"
HorizontalContentAlignment="Right">密码:</Label>
<Image HorizontalAlignment="Left" Margin="20,47,0,8" Name="image1"
Source="images/key.jpg" Stretch="Fill" Width="46" />
<Label FontSize="12" FontWeight="Normal" Foreground="Red" Height="35"
Margin="99,0,97,16" Name="lblStatus" SnapsToDevicePixels="True"
VerticalAlignment="Bottom" />
</Grid>
</Window>
|