DataServices 现场调试OK
This commit is contained in:
134
FATrace.WPLApp/Views/LoginView.xaml
Normal file
134
FATrace.WPLApp/Views/LoginView.xaml
Normal file
@@ -0,0 +1,134 @@
|
||||
<UserControl
|
||||
x:Class="FATrace.WPLApp.Views.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:prism="http://prismlibrary.com/"
|
||||
xmlns:utils="clr-namespace:FATrace.WPLApp.Utils"
|
||||
d:DesignHeight="720"
|
||||
d:DesignWidth="1280"
|
||||
prism:ViewModelLocator.AutoWireViewModel="True"
|
||||
mc:Ignorable="d">
|
||||
<Grid Background="#F5F7FA">
|
||||
<Grid.Resources>
|
||||
<BooleanToVisibilityConverter x:Key="Bool2Vis" />
|
||||
</Grid.Resources>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Border
|
||||
Width="420"
|
||||
Padding="28"
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Center"
|
||||
Background="White"
|
||||
BorderBrush="#E6ECF2"
|
||||
BorderThickness="1"
|
||||
CornerRadius="12">
|
||||
<Border.Effect>
|
||||
<DropShadowEffect
|
||||
BlurRadius="12"
|
||||
Opacity="0.2"
|
||||
ShadowDepth="2" />
|
||||
</Border.Effect>
|
||||
<StackPanel>
|
||||
<!-- 标题 -->
|
||||
<StackPanel
|
||||
Margin="0,6,0,18"
|
||||
HorizontalAlignment="Center"
|
||||
Orientation="Horizontal">
|
||||
<TextBlock
|
||||
FontFamily="/Assets/Fonts/#iconfont"
|
||||
FontSize="26"
|
||||
Foreground="#4A90E2"
|
||||
Text="" />
|
||||
<TextBlock
|
||||
FontSize="24"
|
||||
FontWeight="Bold"
|
||||
Text=" 用户登录" />
|
||||
</StackPanel>
|
||||
|
||||
<!-- 用户名 -->
|
||||
<StackPanel Margin="0,6">
|
||||
<TextBlock Foreground="#6B7C93" Text="用户名" />
|
||||
<Border
|
||||
Height="40"
|
||||
Margin="0,6,0,0"
|
||||
Background="#F7F9FC"
|
||||
CornerRadius="6">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="36" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock
|
||||
Grid.Column="0"
|
||||
Margin="8,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="/Assets/Fonts/#iconfont"
|
||||
Foreground="#A0AEC0"
|
||||
Text="" />
|
||||
<TextBox
|
||||
Grid.Column="1"
|
||||
Padding="8,0"
|
||||
VerticalContentAlignment="Center"
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
Text="{Binding UserName, UpdateSourceTrigger=PropertyChanged}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
|
||||
<!-- 密码 -->
|
||||
<StackPanel Margin="0,6,0,12">
|
||||
<TextBlock Foreground="#6B7C93" Text="密码" />
|
||||
<Border
|
||||
Height="40"
|
||||
Margin="0,6,0,0"
|
||||
Background="#F7F9FC"
|
||||
CornerRadius="6">
|
||||
<Grid>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="36" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock
|
||||
Grid.Column="0"
|
||||
Margin="8,0,0,0"
|
||||
VerticalAlignment="Center"
|
||||
FontFamily="/Assets/Fonts/#iconfont"
|
||||
Foreground="#A0AEC0"
|
||||
Text="" />
|
||||
<PasswordBox
|
||||
Grid.Column="1"
|
||||
Padding="8,0"
|
||||
VerticalContentAlignment="Center"
|
||||
Background="Transparent"
|
||||
BorderThickness="0"
|
||||
utils:PasswordBoxAssistant.BindPassword="True"
|
||||
utils:PasswordBoxAssistant.BoundPassword="{Binding Password, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
</StackPanel>
|
||||
|
||||
<!-- 登录按钮 -->
|
||||
<Button
|
||||
Height="42"
|
||||
Margin="0,8,0,0"
|
||||
Background="#4A90E2"
|
||||
BorderBrush="#4A90E2"
|
||||
Command="{Binding LoginCommand}"
|
||||
Content="登录"
|
||||
Cursor="Hand"
|
||||
FontSize="16"
|
||||
Foreground="White" />
|
||||
|
||||
</StackPanel>
|
||||
</Border>
|
||||
|
||||
<!-- 忙碌遮罩 -->
|
||||
<!--<Grid Background="#80FFFFFF" Visibility="{Binding IsBusy, Converter={StaticResource Bool2Vis}}" />-->
|
||||
</Grid>
|
||||
</UserControl>
|
||||
Reference in New Issue
Block a user