209 lines
7.5 KiB
XML
209 lines
7.5 KiB
XML
<UserControl
|
|
x:Class="FATrace.WPLApp.Views.UserView"
|
|
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:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:local="clr-namespace:FATrace.WPLApp.Views"
|
|
xmlns:localExd="clr-namespace:FATrace.WPLApp.Models"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="800"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="130" />
|
|
<RowDefinition Height="150" />
|
|
<RowDefinition Height="150" />
|
|
<RowDefinition Height="150" />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Border Margin="0,5">
|
|
<TextBlock
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="60"
|
|
FontWeight="Bold"
|
|
Foreground="#404040"
|
|
Text="用户登录" />
|
|
</Border>
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="30"
|
|
Foreground="Black"
|
|
Text="" />
|
|
<TextBlock
|
|
Margin="10,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="30"
|
|
Foreground="Black"
|
|
Text="名称 :" />
|
|
<syncfusion:SfTextBoxExt
|
|
Width="200"
|
|
Margin="5,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="30"
|
|
Foreground="Black"
|
|
SearchItemPath="Name"
|
|
Text="{Binding CurUserDto.Name}">
|
|
<!--<syncfusion:SfTextBoxExt.AutoCompleteItemTemplate>
|
|
AutoCompleteMode="SuggestAppend"
|
|
AutoCompleteSource="{Binding ListUser}"
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Margin="5,2" Text="{Binding Name}" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</syncfusion:SfTextBoxExt.AutoCompleteItemTemplate>-->
|
|
</syncfusion:SfTextBoxExt>
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
Grid.Row="2"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="30"
|
|
Foreground="Black"
|
|
Text="" />
|
|
<TextBlock
|
|
Margin="10,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="30"
|
|
Foreground="Black"
|
|
Text="密码 :" />
|
|
<PasswordBox
|
|
x:Name="pwd"
|
|
Width="200"
|
|
Margin="5,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="30"
|
|
Foreground="Black"
|
|
PasswordChar="*">
|
|
<i:Interaction.Behaviors>
|
|
<localExd:PasswordBoxBehavior Password="{Binding CurUserDto.Password, Mode=TwoWay}" />
|
|
</i:Interaction.Behaviors>
|
|
<!--<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="PasswordChanged">
|
|
<prism:InvokeCommandAction Command="{Binding PasswordChangedCmd}" CommandParameter="{Binding ElementName=pwd, Path=Password}" />
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>-->
|
|
<PasswordBox.InputBindings>
|
|
<KeyBinding Key="Return" Command="{Binding LoginCmd}" />
|
|
</PasswordBox.InputBindings>
|
|
</PasswordBox>
|
|
<!--<syncfusion:SfMaskedEdit
|
|
Width="200"
|
|
Margin="5,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
FontSize="30"
|
|
Foreground="Black"
|
|
PromptChar="*"
|
|
Text="{Binding CurUserDto.Password}" />-->
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
Grid.Row="3"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Orientation="Horizontal">
|
|
|
|
<Button
|
|
Width="200"
|
|
Height="60"
|
|
Command="{Binding LoginCmd}"
|
|
FontSize="30"
|
|
Foreground="#404040">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="30"
|
|
Foreground="Black"
|
|
Text="" />
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="30"
|
|
Foreground="Black"
|
|
Text="登录" />
|
|
</StackPanel>
|
|
|
|
</Button>
|
|
|
|
</StackPanel>
|
|
|
|
<StackPanel
|
|
Grid.Row="4"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
Width="150"
|
|
Height="50"
|
|
Margin="15,10"
|
|
Command="{Binding UserCmd}"
|
|
CommandParameter="UserManage">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="20"
|
|
Foreground="Black"
|
|
Text="" />
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="Black"
|
|
Text="用户管理" />
|
|
</StackPanel>
|
|
|
|
</Button>
|
|
<Button
|
|
Width="150"
|
|
Height="50"
|
|
Margin="15,10"
|
|
Command="{Binding UserCmd}"
|
|
CommandParameter="UserLogout">
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontFamily="/Assets/Fonts/#iconfont"
|
|
FontSize="20"
|
|
Foreground="Black"
|
|
Text="" />
|
|
<TextBlock
|
|
Margin="5,0,5,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="20"
|
|
Foreground="Black"
|
|
Text="用户注销" />
|
|
</StackPanel>
|
|
|
|
</Button>
|
|
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|