| | |
| | | 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" |
| | | pu:WindowXCaption.Background="Transparent" |
| | | WindowStartupLocation="CenterScreen" |
| | | Background="{StaticResource VerBar}" |
| | | Closed="window_Closed" |
| | | ContentRendered="WindowX_ContentRendered" |
| | | pu:WindowXCaption.Buttons="Close"> |
| | | <Window.Resources> |
| | | <ResourceDictionary> |
| | |
| | | <Setter Property="ContentTemplate"> |
| | | <Setter.Value> |
| | | <DataTemplate> |
| | | <TextBlock Text="{Binding Converter={StaticResource lc}, |
| | | ConverterParameter='App.PleaseWait'}" /> |
| | | <TextBlock Text="{DynamicResource App.PleaseWait}" /> |
| | | </DataTemplate> |
| | | </Setter.Value> |
| | | </Setter> |
| | |
| | | <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" |
| | | x:Name="SwRememberMe" |
| | | Cursor="Hand" |
| | | Unchecked="SwRememberMe_Unchecked" |
| | | 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> |