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.
64 lines
4.6 KiB
64 lines
4.6 KiB
<tool:BaseDialog x:Class="Gumming.PasswordInputView"
|
|
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="200" 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="35"></RowDefinition>
|
|
<RowDefinition Height="30"></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" Grid.Column ="1" Margin="5">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="100"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Row="0" Grid.Column ="0" FontSize="15" Text="请输入密码"></TextBlock>
|
|
<!--<TextBox Grid.Row="0" Grid.Column ="1" FontSize="15" Text="{Binding InputText}" TextWrapping="Wrap" local:TouchScreenKeyboard.TouchScreenKeyboard="true"></TextBox>-->
|
|
<PasswordBox Grid.Row="0" Grid.Column ="1" PasswordChar="*" tool:PasswordBoxHelper.Attach="True"
|
|
tool:PasswordBoxHelper.Password="{Binding Path=InputText,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" local:TouchScreenKeyboard.TouchScreenKeyboard="true"></PasswordBox>
|
|
</Grid>
|
|
|
|
<Grid Grid.Column="1" Grid.Row="4">
|
|
<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="1" Margin="2" Style="{DynamicResource CommonIconButton}" Command="{Binding ClearCommand}" Content="清除" Visibility="{Binding AllowInputTwice, Mode=TwoWay ,Converter={StaticResource BooleanConverter}}"></Button>
|
|
<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>
|