You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
5.7 KiB
81 lines
5.7 KiB
<tool:BaseDialog x:Class="Gumming.SysUserEditView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:local="clr-namespace:Gumming"
|
|
xmlns:tool="clr-namespace:GummingCommon;assembly=GummingCommon"
|
|
Background="{DynamicResource DefaultWindowBackground}"
|
|
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
|
|
Title="MainWindow" Width="400" Height="300" Icon="/Gumming;component/Resource/Logo.ico" WindowStartupLocation="CenterScreen">
|
|
<Window.Resources>
|
|
<tool:BooleanToVisibilityConverter x:Key="BooleanConverter"/>
|
|
|
|
<Style TargetType="{x:Type TextBlock}">
|
|
<Setter Property="Margin" Value="3"/>
|
|
<Setter Property="VerticalAlignment" Value="Top"/>
|
|
<Setter Property="HorizontalAlignment" Value="Left"/>
|
|
</Style>
|
|
<Style TargetType="{x:Type ListBox}">
|
|
<Setter Property="Background" Value="White"/>
|
|
<Setter Property="Margin" Value="2"/>
|
|
</Style>
|
|
</Window.Resources>
|
|
<Grid Background="Transparent">
|
|
<Border CornerRadius="3" BorderBrush="Transparent" BorderThickness="1" Background="Transparent">
|
|
<Border CornerRadius="1" BorderThickness="1" Background="Transparent" Height="Auto" BorderBrush="{DynamicResource DialogInnerBorder}">
|
|
<Grid Margin="10,10,10,10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="36"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="35"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Grid.Row="0" Text="{Binding ProductTitle}"></TextBlock>
|
|
<Button Command="{Binding CancelCommand}" Cursor="Hand" Margin="0,6,10,0" VerticalAlignment="Top" HorizontalAlignment="Right" Grid.Column="1" Style="{DynamicResource btnCloseStyle}" Width="26" Height="26" x:Name="btnWinClose" Focusable="False"></Button>
|
|
|
|
<Grid Grid.Row="1" Margin="5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="100"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="35"></RowDefinition>
|
|
<RowDefinition Height="35"></RowDefinition>
|
|
<RowDefinition Height="35"></RowDefinition>
|
|
<RowDefinition Height="35"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Grid.Row="0" Grid.Column ="0" FontSize="15" Text="分组"></TextBlock>
|
|
<ComboBox Grid.Row="0" Grid.Column="1" Margin="0,3,0,3" BorderThickness="0" FontSize="14" ItemsSource="{Binding Path=UserRoles}" SelectedItem="{Binding SelectedUserRole, Mode=TwoWay}">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding RoleName, Mode=TwoWay}" FontSize="14"/>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
<TextBlock Grid.Row="1" Grid.Column ="0" FontSize="15" Text="用户名"></TextBlock>
|
|
<TextBox Grid.Row="1" Grid.Column ="1" Text="{Binding UserName}" HorizontalAlignment="Stretch" FontSize="14" Margin="0,2,0,2"></TextBox>
|
|
<TextBlock Grid.Row="2" Grid.Column ="0" FontSize="15" Text="登录密码"></TextBlock>
|
|
<PasswordBox Grid.Row="2" Grid.Column ="1" PasswordChar="*" tool:PasswordBoxHelper.Attach="True"
|
|
tool:PasswordBoxHelper.Password="{Binding Path=PasswordText,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="0,2,0,2" local:TouchScreenKeyboard.TouchScreenKeyboard="true"></PasswordBox>
|
|
<TextBlock Grid.Row="3" Grid.Column ="0" FontSize="15" Text="确认密码"></TextBlock>
|
|
<PasswordBox Grid.Row="3" Grid.Column ="1" PasswordChar="*" tool:PasswordBoxHelper.Attach="True"
|
|
tool:PasswordBoxHelper.Password="{Binding Path=PasswordText2,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="0,2,0,2" local:TouchScreenKeyboard.TouchScreenKeyboard="true"></PasswordBox>
|
|
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="80"></ColumnDefinition>
|
|
<ColumnDefinition Width="80"></ColumnDefinition>
|
|
<ColumnDefinition Width="80"></ColumnDefinition>
|
|
<ColumnDefinition Width="5"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Button Grid.Column="2" Margin="2" Style="{DynamicResource CommonIconButton}" Command="{Binding SaveCommand}" Content="保存"></Button>
|
|
<Button Grid.Column="3" Margin="2" Style="{DynamicResource CommonIconButton}" Command="{Binding CancelCommand}" Content="取消"></Button>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Border>
|
|
</Grid>
|
|
</tool:BaseDialog>
|