| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <UserControl
- x:Class="LogoForceTestApp.Modules.MainModule.Views.LoginPage"
- 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:hc="https://handyorg.github.io/handycontrol"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:viewmodels="clr-namespace:LogoForceTestApp.Modules.MainModule.ViewModels"
- d:DataContext="{d:DesignInstance Type=viewmodels:LoginPageViewModel}"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
- <Grid>
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <hc:ComboBox
- Width="380"
- Margin="0,16,0,0"
- hc:InfoElement.Necessary="True"
- hc:InfoElement.Placeholder="请输入权限"
- hc:InfoElement.ShowClearButton="True"
- hc:InfoElement.Title="权 限"
- hc:InfoElement.TitlePlacement="Left"
- hc:InfoElement.TitleWidth="140"
- ItemsSource="{Binding Roles}"
- SelectedItem="{Binding UserRole}" />
- <hc:PasswordBox
- Width="380"
- Margin="0,16,0,0"
- hc:InfoElement.Necessary="True"
- hc:InfoElement.Placeholder="请输入密码"
- hc:InfoElement.ShowClearButton="True"
- hc:InfoElement.Title="密 码"
- hc:InfoElement.TitlePlacement="Left"
- hc:InfoElement.TitleWidth="140"
- IsSafeEnabled="False"
- UnsafePassword="{Binding Password}" />
- <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
- <Button
- Width="100"
- Margin="0,16,4,0"
- Command="{Binding LoginCommand}"
- Content="登录"
- IsDefault="True" />
- <Button
- Width="100"
- Margin="0,16,4,0"
- Command="{Binding GoBackCommand}"
- Content="取消" />
- </StackPanel>
- </StackPanel>
- </Grid>
- </UserControl>
|