From ba6207f52db76ab47cd6534de0cf1712674ff179 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期四, 13 三月 2025 09:00:46 +0800
Subject: [PATCH] 完善国际化语言;

---
 WPFProject/Login.xaml |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/WPFProject/Login.xaml b/WPFProject/Login.xaml
index 9823fef..d1b05a0 100644
--- a/WPFProject/Login.xaml
+++ b/WPFProject/Login.xaml
@@ -8,7 +8,7 @@
             xmlns:purs="clr-namespace:Panuon.WPF.UI.Resources;assembly=Panuon.WPF.UI"
             xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI"
             mc:Ignorable="d"
-            Title="{Binding Converter={StaticResource lc},ConverterParameter='App.Login'}"
+            Title="{DynamicResource App.Login}"
             pu:WindowXCaption.Foreground="#FFF"
             Height="420"
             Width="380"
@@ -49,8 +49,7 @@
                         <Setter Property="ContentTemplate">
                             <Setter.Value>
                                 <DataTemplate>
-                                    <TextBlock Text="{Binding Converter={StaticResource lc},
-                                        ConverterParameter='App.PleaseWait'}" />
+                                    <TextBlock Text="{DynamicResource App.PleaseWait}" />
                                 </DataTemplate>
                             </Setter.Value>
                         </Setter>
@@ -111,28 +110,28 @@
                 <TextBox x:Name="TbAccount" Style="{StaticResource EditorTextBoxStyle}"
          Background="White"
          pu:TextBoxHelper.InputLimit="UpperCaseLetters,LowerCaseLetters,Digit"
-         pu:TextBoxHelper.Watermark="{Binding Converter={StaticResource lc},ConverterParameter='App.Username'}"/>
+         pu:TextBoxHelper.Watermark="{DynamicResource App.Username}"/>
             </pu:FormGroup>
             <pu:FormGroup x:Name="FrmPassword" HeaderPadding="0,0,0,10"
           dp:FormGroupHelper.IsRequired="True"
           MinMessageHeight="22">
                 <PasswordBox x:Name="PwdPassword" VerticalContentAlignment="Center" 
                              Style="{StaticResource SignInPasswordBoxStyle}" 
-                             pu:PasswordBoxHelper.Watermark="{Binding Converter={StaticResource lc},ConverterParameter='App.Password'}"/>
+                             pu:PasswordBoxHelper.Watermark="{DynamicResource App.Password}"/>
             </pu:FormGroup>
         </StackPanel>
-        
+
         <pu:Switch Grid.Row="3"
                HorizontalAlignment="Right"
                Margin="0,25,0,0"
                    Cursor="Hand"
                Foreground="{StaticResource PrimaryColorContract}"
                Style="{StaticResource RememberMeSwitchStyle}"
-               Content="{Binding Converter={StaticResource lc},ConverterParameter='App.RememberMe'}" />
+               Content="{DynamicResource App.RememberMe}" />
         <Button Grid.Row="4"
             Margin="0,20,0,0"
             Height="40"
-            Content="{Binding Converter={StaticResource lc},ConverterParameter='App.Login'}"
+            Content="{DynamicResource App.Login}"
             Style="{StaticResource SignInButtonStyle}" x:Name="BtnLogin" Click="Button_Click">
         </Button>
     </Grid>

--
Gitblit v1.9.1