AddExistedCertificationDialog.xaml 2.2 KB

1234567891011121314151617181920212223242526272829303132
  1. <Window x:Class="Compdfkit_Tools.DigitalSignature.AddCertificationControl.AddExistedCertificationDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Compdfkit_Tools.DigitalSignature.AddCertificationControl"
  7. xmlns:common="clr-namespace:Compdfkit_Tools.Common"
  8. mc:Ignorable="d"
  9. Title="AddExistedCertificationDialog" Height="277" Width="470">
  10. <Window.Resources>
  11. <common:TextLengthToVisibilityConverter x:Key="TextLengthToVisibilityConverter"></common:TextLengthToVisibilityConverter>
  12. </Window.Resources>
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition></RowDefinition>
  16. <RowDefinition></RowDefinition>
  17. <RowDefinition></RowDefinition>
  18. <RowDefinition></RowDefinition>
  19. </Grid.RowDefinitions>
  20. <TextBlock TextWrapping="Wrap" FontSize="14" Foreground="#666666" Margin="10,0,10,0" Height="40"
  21. 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.">
  22. </TextBlock>
  23. <StackPanel Grid.Row="1" Orientation="Horizontal">
  24. <Label Content="Files" Foreground="#43474D" FontSize="14" VerticalAlignment="Center" Margin="10,0,10,0" HorizontalAlignment="Left" Width="58"></Label>
  25. <Grid IsEnabled="{Binding InputEnable}">
  26. <TextBox Width="258" Height="28" x:Name="FileNameText" VerticalContentAlignment="Center" TextChanged="FileNameText_TextChanged" VerticalAlignment="Center" Margin="16"/>
  27. <TextBlock Text="Select a file" VerticalAlignment="Center" Margin="22" Visibility="{Binding ElementName=FileNameText, Path=Text, Converter={StaticResource TextLengthToVisibilityConverter}}" IsHitTestVisible="False" Foreground="#BBB"></TextBlock>
  28. </Grid>
  29. <Button Content="Select File" Width="90" Height="28" FontSize="14" FontFamily="Segoe UI"></Button>
  30. </StackPanel>
  31. </Grid>
  32. </Window>