领胜LDS 键盘AOI检测项目
xcd
2020-06-24 d6c577e17ee7bb5331dd51d803f9b42441b0f0e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<Controls:MetroWindow x:Class="Bro.UI.LoginView"
        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:wpfsl="http://schemas.softarcs.com/wpfsmartlibrary"
        xmlns:Dialog="clr-namespace:MahApps.Metro.Controls.Dialogs;assembly=MahApps.Metro"
        Dialog:DialogParticipation.Register="{Binding}"
        xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        wpfsl:WindowKeysHandling.EscapeClosesWindow="True"
        mc:Ignorable="d"
        WindowStartupLocation="CenterScreen"  Width="800" Height="494" 
        ShowInTaskbar="False" WindowStyle="None" ShowTitleBar="False"
        DataContext="{Binding Source={StaticResource Locator}, Path=Login}" 
        ShowMinButton="False" ShowMaxRestoreButton="False" ShowCloseButton="True">
    <Grid Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="70"/>
            <RowDefinition Height="35"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <Grid  Grid.Row="1" Grid.RowSpan="2">
            <wpfsl:SmartLoginOverlay x:Name="SmartLoginOverlayControl"
                                         CapsLockInfo="键盘大写激活"
                                         ProdutionCodes="{Binding ProductionCodes}"
                                         SelectedProdutionCode="{Binding SelectedProductionCode}"
                                         Watermark="输入密码"
                                         IsUserOptionAvailable="True"
                                         UserName="{Binding UserName}"
                                         Password="{Binding Password}"
                                         UserImageSource="{Binding UserImageSource}"
                                         AdditionalSystemInfo="锁定"
                                         WrongCredentialsInfo="用户名或密码不正确.请联系管理员确认."
                                         Command="{Binding Cmmd_Submit}"
                                         CommandParameter="{Binding RelativeSource={RelativeSource Self} }" 
                                         MouseLeftButtonDown="SmartLoginOverlayControl_OnMouseLeftButtonDown">
                <wpfsl:SmartLoginOverlay.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="Black" Offset="0"/>
                        <GradientStop Color="DeepSkyBlue" Offset="1"/>
                    </LinearGradientBrush>
                </wpfsl:SmartLoginOverlay.Background>
            </wpfsl:SmartLoginOverlay>
        </Grid>
        <TextBlock Grid.Row="1" Text="{Binding Version}" Foreground="White" FontSize="14" Panel.ZIndex="2" Margin="0,10,5,0" Width="70" HorizontalAlignment="Right" />
        <Image Grid.Row="0" Panel.ZIndex="2" HorizontalAlignment="Left" Margin="60,5,0,5" Source="Icos/logo_BC.png"/>
    </Grid>
</Controls:MetroWindow>