From c4a3f8db90530a727ffab77c3bb5bb7d782792bf Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期一, 25 八月 2025 15:50:27 +0800
Subject: [PATCH] 上传代码;
---
WPFProject/Login.xaml | 17 ++++++-----------
1 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/WPFProject/Login.xaml b/WPFProject/Login.xaml
index d1b05a0..3bc96d1 100644
--- a/WPFProject/Login.xaml
+++ b/WPFProject/Login.xaml
@@ -13,7 +13,10 @@
Height="420"
Width="380"
pu:WindowXCaption.Background="Transparent"
+ WindowStartupLocation="CenterScreen"
Background="{StaticResource VerBar}"
+ Closed="window_Closed"
+ ContentRendered="WindowX_ContentRendered"
pu:WindowXCaption.Buttons="Close">
<Window.Resources>
<ResourceDictionary>
@@ -22,17 +25,6 @@
<ResourceDictionary Source="/HMI.UI;component/Resources/Font/Font.xaml"/>
<ResourceDictionary Source="/HMI.UI;component/Style/Colors.xaml"/>
</ResourceDictionary.MergedDictionaries>
-
- <Style x:Key="SignInPasswordBoxStyle" TargetType="PasswordBox" BasedOn="{StaticResource {x:Type PasswordBox}}">
- <Setter Property="pu:PasswordBoxHelper.FocusedBorderBrush" Value="#6CBCEA" />
- <Setter Property="pu:PasswordBoxHelper.FocusedShadowColor" Value="#6CBCEA" />
- <Setter Property="pu:PasswordBoxHelper.CornerRadius" Value="2" />
- <Setter Property="pu:PasswordBoxHelper.WatermarkForeground" Value="#4A4A4A" />
- <Setter Property="pu:PasswordBoxHelper.FocusedWatermarkForeground" Value="#AAAAAA" />
- <Setter Property="pu:PasswordBoxHelper.ClearButtonVisibility" Value="VisibleOnHoverAndNonnull" />
- <Setter Property="Height" Value="35" />
- <Setter Property="Padding" Value="10,0" />
- </Style>
<Style x:Key="SignInButtonStyle" TargetType="Button" BasedOn="{StaticResource PrimaryButton}">
<Setter Property="pu:ButtonHelper.PendingSpinStyle">
@@ -124,10 +116,13 @@
<pu:Switch Grid.Row="3"
HorizontalAlignment="Right"
Margin="0,25,0,0"
+ x:Name="SwRememberMe"
Cursor="Hand"
+ Unchecked="SwRememberMe_Unchecked"
Foreground="{StaticResource PrimaryColorContract}"
Style="{StaticResource RememberMeSwitchStyle}"
Content="{DynamicResource App.RememberMe}" />
+
<Button Grid.Row="4"
Margin="0,20,0,0"
Height="40"
--
Gitblit v1.9.1