<Window x:Class="AIRS.UpUser"
        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="180" Width="460" WindowStyle="None" Background="#FF18253C" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Loaded="Window_Loaded">
    <Grid>
        <Label x:Name="titel" Content="添加检验员" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Foreground="White" FontSize="20" FontWeight="Bold"/>
        <Canvas Margin="0,38,0,50" Background="#FFD7D7D7" >
            <Label Content="检验员：" Canvas.Left="49" Canvas.Top="32" FontSize="20" FontWeight="Bold"/>

            <TextBox x:Name="cbbLoginname" Canvas.Left="157" Canvas.Top="33" Width="260" Background="White" FontSize="20" BorderBrush="White"/>
        </Canvas>
        <Button x:Name="BtnExit" Content="取消" HorizontalAlignment="Left" Margin="312,135,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="161,135,0,0" VerticalAlignment="Top" Width="138" Height="37" FontSize="20" Foreground="White" Background="#FF169BD5" Click="BtnUp_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>
