<Window x:Class="ButcherFactory.Login.Login"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Login" Height="433" Width="622" WindowStyle="None" AllowsTransparency="True" ResizeMode="NoResize" MouseLeftButtonDown="Window_MouseLeftButtonDown" BorderThickness="40" >
  <Window.Background>
    <ImageBrush ImageSource="images/login.png"/>
  </Window.Background>
  <Window.Effect>
    <DropShadowEffect BlurRadius="40" Color="#000000"  ShadowDepth="0" Opacity="0.3"/>
  </Window.Effect>
  <Grid>
    <TextBlock x:Name="versionLbl" Margin="0,0,20,10" HorizontalAlignment="Right" VerticalAlignment="Bottom" Foreground="Green"/>
    <Image x:Name="updateImg" Visibility="Hidden" Source="images\update.png" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,10,45,0" Width="32" PreviewMouseDown="UpdateBtn_Click"/>

    <Image Source="images\setting.png" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,10,10,0" Width="32" PreviewMouseDown="SetBtn_Click"/>
    
    <Label Content="用户名：" FontFamily="微软雅黑" FontSize="22px" HorizontalAlignment="Left" Margin="140,152,0,0" VerticalAlignment="Top" Width="90"/>

    <TextBox Name="userNameInput" HorizontalAlignment="Left" Height="33" Margin="233,158,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" FontFamily="微软雅黑" FontSize="17"  Width="187" VerticalContentAlignment="Center" PreviewMouseLeftButtonDown="UserNameTextBoxClick"/>

    <Label Content="密  码 ：" FontFamily="微软雅黑" FontSize="22px" HorizontalAlignment="Left" Margin="142,202,0,0" VerticalAlignment="Top" Width="90" />

    <PasswordBox Name="pwdInput" HorizontalAlignment="Left" Height="33" Margin="233,208,0,0" VerticalAlignment="Top" FontSize="17" Width="187" VerticalContentAlignment="Center" PreviewMouseLeftButtonDown="PwdTextBoxClick"/>
    <Button Name="loginBtn" Style="{StaticResource Login}" Content="登录" Foreground="#FFFFFF" HorizontalAlignment="Left" Margin="233,260,0,0" VerticalAlignment="Top" Width="80" Height="40" FontSize="18" BorderBrush="#0675E3" Click="LoginBtn_Click">
      <!--<Button.Background>
        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
          <GradientStop Color="#FF055EB6" Offset="1"/>
          <GradientStop Color="#FF1888F8"/>
        </LinearGradientBrush>
      </Button.Background>-->
      <!--<Button.Style>
        <Style TargetType="Button">
          <Style.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
              <Setter Property="Background" Value="Red" />
            </Trigger>
          </Style.Triggers>
        </Style>        
      </Button.Style>-->
    </Button>
    <Button Style="{StaticResource Exist}" Content="退出" HorizontalAlignment="Left" Margin="340,260,0,0" VerticalAlignment="Top" Width="80" Height="40" FontSize="18" BorderBrush="#A0A0A0" Click="ExistBtn_Click"/>
  </Grid>
</Window>