<Window x:Class="LB_SmartVisionLoginUI.MainWindow"
|
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:LB_SmartVisionLoginUI"
|
WindowStartupLocation="CenterScreen"
|
WindowStyle="None"
|
Background="Transparent"
|
AllowsTransparency="True"
|
mc:Ignorable="d"
|
Title="MainWindow" Height="420" Width="800" Closing="Window_Closing">
|
|
<Grid x:Name="test" Width="800" Height="460" Opacity="1.0">
|
<Grid.Background>
|
<ImageBrush ImageSource="./images/lanbao.jpg"
|
Stretch="UniformToFill"/>
|
</Grid.Background>
|
<!--标题-->
|
<Border BorderBrush="LightBlue" BorderThickness="3" Height="60" VerticalAlignment="Top" CornerRadius="30" Margin="116,2,102,0" Background="#72F5DEB3">
|
<Label x:Name="Lbl_Title" BorderBrush="Red" Background="Transparent" Content="轮胎外观视觉检测系统" HorizontalAlignment="Center" Foreground="Black" FontFamily="楷体" FontSize="36" Margin="31,2,91,-2" Width="454"></Label>
|
</Border>
|
|
<!--关闭系统-->
|
<Image Source="./images/05.png" Height="30" MouseDown="test_Close" Margin="644,15,116,415" ToolTip="关闭系统" />
|
<!--最小化系统-->
|
<Image Source="./images/06.png" Height="30" Margin="603,15,157,415" MouseDown="test_Min" ToolTip="最小化"/>
|
|
<Border BorderBrush="LightBlue" Width="700" Height="325" Background="Transparent" BorderThickness="3" CornerRadius="80" Padding="13" >
|
|
<Border Width="655" BorderThickness="3" CornerRadius="80" BorderBrush="LightBlue" Padding="23" >
|
<!--<Border.Background>
|
<ImageBrush ImageSource="./images/lanbao.jpg" Stretch="UniformToFill"/>
|
</Border.Background>-->
|
<!--<Image Height="161" Width="162" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="-5,40,0,0" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Source="./images/logo.ico"/>-->
|
<!--<Image Source="/images/logo_h.png" Height="161" Width="162" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="-5,40,0,0" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Visibility="Visible" ScrollViewer.HorizontalScrollBarVisibility="Auto" StretchDirection="DownOnly">-->
|
<!--<Image.RenderTransform>
|
<TransformGroup>
|
<ScaleTransform/>
|
<SkewTransform AngleX="0.149"/>
|
<RotateTransform/>
|
<TranslateTransform X="-0.469"/>
|
</TransformGroup>
|
</Image.RenderTransform>
|
</Image>-->
|
|
</Border>
|
</Border>
|
<Border Background="#72F5DEB3" BorderThickness="3" CornerRadius="80" BorderBrush="LightBlue" Padding="23" Margin="277,116,95,111" RenderTransformOrigin="0.5,0.5" >
|
<Border.RenderTransform>
|
<TransformGroup>
|
<ScaleTransform/>
|
<SkewTransform AngleY="0.351"/>
|
<RotateTransform/>
|
<TranslateTransform Y="1.312"/>
|
</TransformGroup>
|
</Border.RenderTransform>
|
<Button x:Name="Btn_KeyBoard" Margin="283,67,-16,67" Content="" FontFamily="楷体" FontSize="36" Foreground="Black" Click="Btn_KeyBoard_Click" Visibility="Hidden" >
|
<Button.Background>
|
<ImageBrush ImageSource="images/键盘.ico"/>
|
</Button.Background>
|
</Button>
|
</Border>
|
<!--用户密码标签加文本框-->
|
<Label x:Name="Lbl_UserName" Content="用户名:" FontFamily="楷体" FontSize="22" Height="35" Width="83" HorizontalAlignment="Left" Margin="316,177,0,250" FontWeight="Bold" />
|
<TextBox x:Name="Txt_UserName" TextBlock.FontStyle="Normal" FontStretch="Normal" HorizontalScrollBarVisibility="Hidden" Height="30" FontSize="15" Margin="404,185,229,250"/>
|
|
<Label x:Name="Lbl_PassWord" Content="密码:" FontFamily="楷体" FontSize="22" Height="35" Width="63" HorizontalAlignment="Left" Margin="337,217,0,213" RenderTransformOrigin="0.597,0.559" FontWeight="Bold" ></Label>
|
<!--请输入密码-->
|
<PasswordBox x:Name="Txt_UserPassWord" TextBlock.FontStyle="Normal" Height="30" Margin="405,224,230,211" FontSize="15" KeyDown="Txt_UserPassWord_KeyDown"/>
|
<!--登录按钮-->
|
<Button x:Name="Btn_Login" Margin="378,275,336,138" Content="登录" FontFamily="楷体" FontSize="36" Foreground="Black" Background="Wheat" Click="Btn_Login_Click" FontWeight="Bold" />
|
<Button x:Name="Btn_Cancel" Margin="511,275,203,138" Content="取消" FontFamily="楷体" FontSize="36" Foreground="Black" Background="Wheat" Click="Btn_Cancel_Click" FontWeight="Bold" />
|
|
|
|
</Grid>
|
|
</Window>
|