You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
2.8 KiB
XML

<UserControl x:Class="StartServerWPF.Modules.Main.Views.LoginViewDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
xmlns:hc="https://handyorg.github.io/handycontrol"
xmlns:local="clr-namespace:StartServerWPF.Modules.Main.Views"
xmlns:prism="http://prismlibrary.com/"
prism:ViewModelLocator.AutoWireViewModel="True"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<prism:Dialog.WindowStyle>
<Style TargetType="Window">
<Setter Property="Width" Value="800"/>
<Setter Property="Height" Value="500"/>
<Setter Property="WindowStyle" Value="ToolWindow"/>
<Setter Property="ResizeMode" Value="NoResize"/>
<Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterScreen"/>
</Style>
</prism:Dialog.WindowStyle>
<Grid >
<Image Source="pack://application:,,,/StartServerWPF.Assets;component/Images/background.jpg" Stretch="UniformToFill"/>
<StackPanel Margin="10" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="预警系统管理后台" Foreground="White" FontSize="20" Margin="0,0,0,60" HorizontalAlignment="Center"/>
<Border Background="White" CornerRadius="10" >
<StackPanel Margin="20" Width="200">
<DockPanel >
<TextBlock Text="用户名:" VerticalAlignment="Center"/>
<TextBox Text="{Binding Account}" DockPanel.Dock="Right" />
</DockPanel>
<DockPanel Margin="0,20,0,20" >
<TextBlock Text="密 码:" VerticalAlignment="Center"/>
<hc:PasswordBox UnsafePassword="{Binding Password,UpdateSourceTrigger=PropertyChanged}" IsSafeEnabled="False" ShowClearButton="True" ShowEyeButton="True" DockPanel.Dock="Right"/>
</DockPanel>
<CheckBox Content="保持登录状态" IsChecked="True" Margin="0,10,0,10"/>
<Button Grid.Row="2" Content="登录" Command="{Binding LoginCommand}" Background="#FF2B9FF3" Foreground="White" Width="80"/>
</StackPanel>
</Border>
</StackPanel>
<Grid Background="WhiteSmoke" Opacity="0.5" Visibility="{Binding IsLoadingVisibile}">
<local:Loading Message="{Binding LoadingMessage}"/>
</Grid>
</Grid>
</UserControl>