CertificateDetailControl.xaml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <UserControl x:Class="Compdfkit_Tools.PDFControl.CertificateDetailControl"
  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.PDFControl"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="600">
  9. <Grid>
  10. <Grid Background="#ffffff" Margin="20,0,0,0" Panel.ZIndex="1" Height="20" HorizontalAlignment="Left" VerticalAlignment="Top">
  11. <TextBlock Text="Details" FontWeight="Bold" FontSize="16"></TextBlock>
  12. </Grid>
  13. <Border Margin="12" BorderBrush="#33000000" BorderThickness="1" >
  14. <ScrollViewer Margin="0,10,0,0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
  15. <StackPanel VerticalAlignment="Center" Margin="20,0,0,0">
  16. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  17. <TextBlock Text="Version: " Foreground="Black" FontSize="14"></TextBlock>
  18. <TextBlock x:Name="AwardTxt" Text="{Binding Version}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  19. </StackPanel>
  20. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  21. <TextBlock Text="Algorithm: " Foreground="Black" FontSize="14"></TextBlock>
  22. <TextBlock x:Name="AlgorithmTxt" Text="{Binding Algorithm}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  23. </StackPanel>
  24. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  25. <TextBlock Text="Subject: " Foreground="Black" FontSize="14"></TextBlock>
  26. <TextBlock x:Name="Subjectxt" Text="{Binding Subject}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  27. </StackPanel>
  28. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  29. <TextBlock Text="Issuer: " Foreground="Black" FontSize="14"></TextBlock>
  30. <TextBlock x:Name="IssuerTxt" Text="{Binding Issuer}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  31. </StackPanel>
  32. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  33. <TextBlock Text="Serial Number: " Foreground="Black" FontSize="14"></TextBlock>
  34. <TextBlock x:Name="SerialNumberTxt" Text="{Binding SerialNumber}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  35. </StackPanel>
  36. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  37. <TextBlock Text="Valid from: " Foreground="Black" FontSize="14"></TextBlock>
  38. <TextBlock x:Name="ValidityFromTxt" Text="{Binding ValidityFrom}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  39. </StackPanel>
  40. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  41. <TextBlock Text="Valid to: " Foreground="Black" FontSize="14"></TextBlock>
  42. <TextBlock x:Name="ValidityToTxt" Text="{Binding ValidityTo}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  43. </StackPanel>
  44. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  45. <TextBlock Text="Certificate Policy: " Foreground="Black" FontSize="14"></TextBlock>
  46. <TextBlock x:Name="CertificatePolicyTxt" Text="{Binding CertificatePolicy}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  47. </StackPanel>
  48. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  49. <TextBlock Text="CRL Distribution Points: " Foreground="Black" FontSize="14"></TextBlock>
  50. <TextBlock x:Name="CRLTxt" Text="{Binding CrlDistributionPoint}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  51. </StackPanel>
  52. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  53. <TextBlock Text="Issuer Information Access: " Foreground="Black" FontSize="14"></TextBlock>
  54. <TextBlock x:Name="AgencyInformationTxt" Text="{Binding AuthorityInfoAccess}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  55. </StackPanel>
  56. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  57. <TextBlock Text="Issuer‘s Key Identifier: " Foreground="Black" FontSize="14"></TextBlock>
  58. <TextBlock x:Name="AuthoritySecretKeyTxt" Text="{Binding AuthorityKeyIdentifier}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  59. </StackPanel>
  60. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  61. <TextBlock Text="Subject‘s Key Identifier: " Foreground="Black" FontSize="14"></TextBlock>
  62. <TextBlock x:Name="SubjectSecretKeyTxt" Text="{Binding SubjectKeyIdentifier}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  63. </StackPanel>
  64. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  65. <TextBlock Text="Basic Constraints: " Foreground="Black" FontSize="14"></TextBlock>
  66. <TextBlock x:Name="BasicConstraintsTxt" Text="{Binding BasicConstraints}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  67. </StackPanel>
  68. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  69. <TextBlock Text="Key Usage: " Foreground="Black" FontSize="14"></TextBlock>
  70. <TextBlock x:Name="KeyUsageTxt" Text="{Binding KeyUsage}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  71. </StackPanel>
  72. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  73. <TextBlock Text="Public key: " Foreground="Black" FontSize="14"></TextBlock>
  74. <TextBlock x:Name="PublicKeyTxt" Text="{Binding PublicKey}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  75. </StackPanel>
  76. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  77. <TextBlock Text="X.509 Data: " Foreground="Black" FontSize="14"></TextBlock>
  78. <TextBlock x:Name="X509Txt" Text="{Binding X509Data}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  79. </StackPanel>
  80. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  81. <TextBlock Text="SHA1 Abstract: " Foreground="Black" FontSize="14"></TextBlock>
  82. <TextBlock x:Name="SHA1AbstractTxt" Text="{Binding SHA1Digest}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  83. </StackPanel>
  84. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  85. <TextBlock Text="MD5 Abstract: " Foreground="Black" FontSize="14"></TextBlock>
  86. <TextBlock x:Name="MD5AbstractTxt" Text="{Binding MD5Digest}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  87. </StackPanel>
  88. </StackPanel>
  89. </ScrollViewer>
  90. </Border>
  91. </Grid>
  92. </UserControl>