AddCertificationDialog.xaml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <Window x:Class="Compdfkit_Tools.DigitalSignature.AddCertificationControl.AddCertificationDialog"
  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. ShowInTaskbar="False"
  8. mc:Ignorable="d"
  9. Height="500"
  10. Width="462">
  11. <Grid Margin="10,10,10,0">
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="Auto" />
  14. <RowDefinition Height="Auto" />
  15. <RowDefinition Height="Auto" />
  16. <RowDefinition Height="Auto" />
  17. <RowDefinition Height="Auto" />
  18. </Grid.RowDefinitions>
  19. <Label Grid.Row="0" Content="Select the type of Digital ID:" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold" Padding="0,4,0,4" Width="187" HorizontalAlignment="Left"></Label>
  20. <RadioButton Grid.Row="1" GroupName="ChooseCertification" Margin="0,20,0,20" >
  21. <RadioButton.Template>
  22. <ControlTemplate TargetType="RadioButton">
  23. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  24. <RadioButton IsChecked="{TemplateBinding IsChecked}" VerticalAlignment="Center" Margin="10,0,10,0"/>
  25. <Border BorderThickness="1" BorderBrush="Black" Width="386" Height="80">
  26. <StackPanel Orientation="Horizontal">
  27. <Image Width="32" Height="32" VerticalAlignment="Center" Margin="10,0,10,0"/>
  28. <StackPanel Orientation="Vertical" VerticalAlignment="Center">
  29. <Label Content="Use a Digital ID from a file" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold" Padding="0,4,0,4"/>
  30. <Label Content="Import an existing Digital ID that you have obtained as a file" FontSize="12" FontFamily="Segoe UI" Padding="0,4,0,4"/>
  31. </StackPanel>
  32. </StackPanel>
  33. </Border>
  34. </StackPanel>
  35. </ControlTemplate>
  36. </RadioButton.Template>
  37. </RadioButton>
  38. <RadioButton Grid.Row="2" GroupName="ChooseCertification" Margin="0,2,0,10">
  39. <RadioButton.Template>
  40. <ControlTemplate TargetType="RadioButton">
  41. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  42. <RadioButton IsChecked="{TemplateBinding IsChecked}" VerticalAlignment="Center" Margin="10,0,10,0"/>
  43. <Border BorderThickness="1" BorderBrush="Black" Width="386" Height="80">
  44. <StackPanel Orientation="Horizontal">
  45. <Image Width="32" Height="32" VerticalAlignment="Center" Margin="10,0,10,0"/>
  46. <StackPanel Orientation="Vertical" VerticalAlignment="Center">
  47. <Label Content="Use a Digital ID from a file" FontSize="14" FontFamily="Segoe UI" FontWeight="Bold" Padding="0,4,0,4"/>
  48. <Label Content="Create your self-signed Digital ID" FontSize="12" FontFamily="Segoe UI" Padding="0,4,0,4"/>
  49. </StackPanel>
  50. </StackPanel>
  51. </Border>
  52. </StackPanel>
  53. </ControlTemplate>
  54. </RadioButton.Template>
  55. </RadioButton>
  56. <StackPanel Grid.Row="3" Margin="10,20,10,20" Width="407">
  57. <TextBlock FontSize="12" FontFamily="Segoe UI" Foreground="#43474D" TextWrapping="Wrap" Background="#F2F2F2" Padding="12,10,12,10"
  58. Text="A Digital ID is required to create a digital signature. The most secure Digital ID are issued by trusted Certificate authorities and are based on secure devices like smart card or token. Some are based on files."/>
  59. <TextBlock FontSize="12" FontFamily="Segoe UI" Foreground="#43474D" TextWrapping="Wrap" Background="#F2F2F2"/>
  60. <TextBlock FontSize="12" FontFamily="Segoe UI" Foreground="#43474D" TextWrapping="Wrap" Background="#F2F2F2" Padding="12,10,12,10"
  61. Text="You can also create a new Digital ID, but they provide a low level of identity assurance."/>
  62. </StackPanel>
  63. <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Right">
  64. <Button Content="Cancel" Width="112" Height="32" BorderThickness="1" Margin="0,0,10,0"></Button>
  65. <Button Content="Continue" Width="112" Height="32" BorderThickness="1"></Button>
  66. </StackPanel>
  67. </Grid>
  68. </Window>