<Window x:Class="AIRS.LoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:AIRS"
        mc:Ignorable="d"
        Title="LoginWindow" Height="280" Width="460" WindowStyle="None" Background="#FF18253C" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Loaded="Window_Loaded">
    <Grid>
        <Label Content="检验员登录" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Foreground="White" FontSize="20" FontWeight="Bold"/>
        <Canvas Margin="0,38,-0.4,56.6" Background="#FFD7D7D7" >
            <Label Content="检验员：" Canvas.Left="35" Canvas.Top="20" FontSize="20" FontWeight="Bold"/>
            <Label Content="密码：" Canvas.Left="54" Canvas.Top="70" FontSize="20" FontWeight="Bold"/>
            <Label Content="复合员：" Canvas.Left="35" Canvas.Top="120" FontSize="20" FontWeight="Bold"/>
            <ComboBox x:Name="cbbLoginname" Canvas.Left="142" Canvas.Top="22" Width="260" Background="White" FontSize="20" BorderBrush="White" IsEditable="True"/>
            <PasswordBox x:Name="cbbpassword" Canvas.Left="142" Canvas.Top="73" Width="260" Height="30" MaxLength="20" VerticalContentAlignment="Center" HorizontalContentAlignment="Left"/>
            <ComboBox x:Name="cbbcompound" Canvas.Left="142" Canvas.Top="122" Width="260" Background="White" FontSize="20" BorderBrush="White" IsEditable="True"/>
            </Canvas>
        <Button x:Name="BtnExit" Content="退出" HorizontalAlignment="Left" Margin="301,234,0,0" VerticalAlignment="Top" Width="138" Height="37" FontSize="20" Foreground="White" Background="#FF169BD5" Click="BtnExit_Click" >
            <Button.Template >
                <ControlTemplate TargetType="{x:Type Button}" >
                    <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="7,7,7,7">
                        <Border.Background>#FF169BD5</Border.Background>
                        <ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
                    </Border>
                </ControlTemplate>
            </Button.Template>
        </Button>
        <Button x:Name="BtnLogin" Content="登录" IsDefault="True"  HorizontalAlignment="Left" Margin="150,234,0,0" VerticalAlignment="Top" Width="138" Height="37" FontSize="20" Foreground="White" Background="#FF169BD5" Click="BtnLogin_Click">
            <Button.Template >
                <ControlTemplate TargetType="{x:Type Button}" >
                    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7,7,7,7">
                        <Border.Background>
                            <Brush>#FF169BD5</Brush>
                        </Border.Background>
                        <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" />
                    </Border>
                </ControlTemplate>
            </Button.Template>
        </Button>
    </Grid>
</Window>
