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.
74 lines
5.2 KiB
74 lines
5.2 KiB
<tool:BaseDialog x:Class="Gumming.PasswordEditView"
|
|
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="220" 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>
|
|
<Border Grid.Row="0" Background="{DynamicResource DialogHeaderBackground}" BorderBrush="{DynamicResource DefaultBorderBrush}" BorderThickness="0,0,0,1">
|
|
<Grid>
|
|
<TextBlock Grid.Row="0" Margin="5" FontSize="15" VerticalAlignment="Center" HorizontalAlignment="Center" 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>
|
|
</Border>
|
|
<Grid Grid.Row="1" Margin="5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="100"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0"></RowDefinition>
|
|
<RowDefinition Height="0"></RowDefinition>
|
|
<RowDefinition Height="35"></RowDefinition>
|
|
<RowDefinition Height="35"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<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>
|