LoginWindow.xaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <Window x:Class="AIRS.LoginWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:AIRS"
  7. mc:Ignorable="d"
  8. Title="LoginWindow" Height="280" Width="460" WindowStyle="None" Background="#FF18253C" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" Loaded="Window_Loaded">
  9. <Grid>
  10. <Label Content="检验员登录" HorizontalAlignment="Left" Margin="0,0,0,0" VerticalAlignment="Top" Foreground="White" FontSize="20" FontWeight="Bold"/>
  11. <Canvas Margin="0,38,-0.4,56.6" Background="#FFD7D7D7" >
  12. <Label Content="检验员:" Canvas.Left="35" Canvas.Top="20" FontSize="20" FontWeight="Bold"/>
  13. <Label Content="密码:" Canvas.Left="54" Canvas.Top="70" FontSize="20" FontWeight="Bold"/>
  14. <Label Content="复合员:" Canvas.Left="35" Canvas.Top="120" FontSize="20" FontWeight="Bold"/>
  15. <ComboBox x:Name="cbbLoginname" Canvas.Left="142" Canvas.Top="22" Width="260" Background="White" FontSize="20" BorderBrush="White" IsEditable="True"/>
  16. <PasswordBox x:Name="cbbpassword" Canvas.Left="142" Canvas.Top="73" Width="260" Height="30" MaxLength="20" VerticalContentAlignment="Center" HorizontalContentAlignment="Left"/>
  17. <ComboBox x:Name="cbbcompound" Canvas.Left="142" Canvas.Top="122" Width="260" Background="White" FontSize="20" BorderBrush="White" IsEditable="True"/>
  18. </Canvas>
  19. <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" >
  20. <Button.Template >
  21. <ControlTemplate TargetType="{x:Type Button}" >
  22. <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="7,7,7,7">
  23. <Border.Background>#FF169BD5</Border.Background>
  24. <ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
  25. </Border>
  26. </ControlTemplate>
  27. </Button.Template>
  28. </Button>
  29. <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">
  30. <Button.Template >
  31. <ControlTemplate TargetType="{x:Type Button}" >
  32. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7,7,7,7">
  33. <Border.Background>
  34. <Brush>#FF169BD5</Brush>
  35. </Border.Background>
  36. <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" />
  37. </Border>
  38. </ControlTemplate>
  39. </Button.Template>
  40. </Button>
  41. </Grid>
  42. </Window>