123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <UserControl x:Class="Compdfkit_Tools.PDFControl.SaveCerficateControl"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:Compdfkit_Tools.PDFControl"
- xmlns:common="clr-namespace:Compdfkit_Tools.Common"
- mc:Ignorable="d"
- Height="310" Width="550">
- <UserControl.Resources>
- <common:TextLengthToVisibilityConverter x:Key="TextLengthToVisibilityConverter"></common:TextLengthToVisibilityConverter>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition Height="auto"></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <TextBlock TextWrapping="Wrap" FontSize="14" Foreground="#000000" Margin="10,20,10,20" Height="40"
- Text="Browse digital ID files. Digital ID files are password protected. If you do not know its password, you cannot access the digital ID card.">
- </TextBlock>
- <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,0,0,8">
- <TextBlock Text="Files" Foreground="#43474D" FontSize="14" VerticalAlignment="Center" Margin="10,0,10,0" HorizontalAlignment="Left" Width="120" FontFamily="Segoe UI"></TextBlock>
- <Grid>
- <TextBox Width="258" Height="28" x:Name="FileNameText" VerticalContentAlignment="Center" VerticalAlignment="Center" IsReadOnly="True" Text="{Binding FilePath, Mode =TwoWay}"/>
- <TextBlock Text="Select a file" Margin="8" VerticalAlignment="Center" Visibility="{Binding ElementName=FileNameText, Path=Text, Converter={StaticResource TextLengthToVisibilityConverter}}" IsHitTestVisible="False" Foreground="#BBB"></TextBlock>
- </Grid>
- <Button x:Name="SelectFileBtn" Content="Select File" Width="90" Height="28" FontSize="14" FontFamily="Segoe UI" Margin="8,0,0,0" Click="SelectFileBtn_Click"></Button>
- </StackPanel>
- <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10,0,0,8">
- <TextBlock Foreground="#43474D" Width="120" FontSize="14" FontFamily="Segoe UI" Text="Set Password" VerticalAlignment="Top" Margin="10,5,10,0"></TextBlock>
- <PasswordBox Name="SetPasswordPbx" Padding="5,0,0,0" Width="258" Height="28" VerticalContentAlignment="Center" VerticalAlignment="Center"></PasswordBox>
- </StackPanel>
- <StackPanel Grid.Row="3" Orientation="Horizontal" Margin="10,0,0,8">
- <TextBlock Foreground="#43474D" Width="120" FontSize="14" FontFamily="Segoe UI" Text="Confirm Password" VerticalAlignment="Top" Margin="10,5,10,0"></TextBlock>
- <PasswordBox Name="ConfirmPasswordPbx" Padding="5,0,0,0" Width="258" Height="28" VerticalContentAlignment="Center" VerticalAlignment="Center"></PasswordBox>
- </StackPanel>
- <TextBlock Name="ErrorTipsText" Foreground="Red" Margin="150,4,0,0" Visibility="Collapsed" Grid.Row="4">Confirmation password is not the same as the set password, please re-enter it.</TextBlock>
- <Grid Grid.Row="5">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="24">
- <Button x:Name="CancelBtn" Content="Cancel" Margin="0,0,10,0" Width="112" Height="32" BorderThickness="1"></Button>
- <Button x:Name="DoneBtn" Content="Done" Width="112" Height="32" BorderThickness="1" Click="DoneBtn_Click"></Button>
- </StackPanel>
- </Grid>
- </Grid>
- </UserControl>
|