AddCertificationControl.xaml 4.9 KB

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