CertificateDetailControl.xaml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <UserControl x:Class="ComPDFKit.Controls.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.Controls.PDFControl"
  7. xmlns:common="clr-namespace:ComPDFKit.Controls.Common"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="600">
  10. <UserControl.Resources>
  11. <ResourceDictionary>
  12. <common:SigResourceConverter x:Key="SigResourceConverter"></common:SigResourceConverter>
  13. </ResourceDictionary>
  14. </UserControl.Resources>
  15. <Grid>
  16. <Grid Background="#ffffff" Margin="20,0,0,0" Panel.ZIndex="1" Height="20" HorizontalAlignment="Left" VerticalAlignment="Top">
  17. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_Details}" FontWeight="Bold" FontSize="16"></TextBlock>
  18. </Grid>
  19. <Border Margin="12" BorderBrush="#33000000" BorderThickness="1" >
  20. <ScrollViewer Margin="0,10,0,0" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
  21. <StackPanel VerticalAlignment="Center" Margin="20,0,0,0">
  22. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  23. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_Version}" Foreground="Black" FontSize="14"></TextBlock>
  24. <TextBlock x:Name="AwardTxt" Text="{Binding Version}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  25. </StackPanel>
  26. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  27. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_Algorithm}" Foreground="Black" FontSize="14"></TextBlock>
  28. <TextBlock x:Name="AlgorithmTxt" Text="{Binding Algorithm}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  29. </StackPanel>
  30. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  31. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_Subject}" Foreground="Black" FontSize="14"></TextBlock>
  32. <TextBlock x:Name="Subjectxt" Text="{Binding Subject}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  33. </StackPanel>
  34. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  35. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_Issuer}" Foreground="Black" FontSize="14"></TextBlock>
  36. <TextBlock x:Name="IssuerTxt" Text="{Binding Issuer}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  37. </StackPanel>
  38. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  39. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_SerialNum}" Foreground="Black" FontSize="14"></TextBlock>
  40. <TextBlock x:Name="SerialNumberTxt" Text="{Binding SerialNumber}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  41. </StackPanel>
  42. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  43. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_ValidFrom}" Foreground="Black" FontSize="14"></TextBlock>
  44. <TextBlock x:Name="ValidityFromTxt" Text="{Binding ValidityFrom}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  45. </StackPanel>
  46. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  47. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_ValidTo}" Foreground="Black" FontSize="14"></TextBlock>
  48. <TextBlock x:Name="ValidityToTxt" Text="{Binding ValidityTo}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  49. </StackPanel>
  50. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  51. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_CertPolicy}" Foreground="Black" FontSize="14"></TextBlock>
  52. <TextBlock x:Name="CertificatePolicyTxt" Text="{Binding CertificatePolicy}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  53. </StackPanel>
  54. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  55. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_CRL}" Foreground="Black" FontSize="14"></TextBlock>
  56. <TextBlock x:Name="CRLTxt" Text="{Binding CrlDistributionPoint}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  57. </StackPanel>
  58. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  59. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_IssuerInfo}" Foreground="Black" FontSize="14"></TextBlock>
  60. <TextBlock x:Name="AgencyInformationTxt" Text="{Binding AuthorityInfoAccess}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  61. </StackPanel>
  62. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  63. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_IssuerID}" Foreground="Black" FontSize="14"></TextBlock>
  64. <TextBlock x:Name="AuthoritySecretKeyTxt" Text="{Binding AuthorityKeyIdentifier}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  65. </StackPanel>
  66. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  67. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_SubjectID}" Foreground="Black" FontSize="14"></TextBlock>
  68. <TextBlock x:Name="SubjectSecretKeyTxt" Text="{Binding SubjectKeyIdentifier}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  69. </StackPanel>
  70. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  71. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_BasicConstraints}" Foreground="Black" FontSize="14"></TextBlock>
  72. <TextBlock x:Name="BasicConstraintsTxt" Text="{Binding BasicConstraints}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  73. </StackPanel>
  74. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  75. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_KeyUsage}" Foreground="Black" FontSize="14"></TextBlock>
  76. <TextBlock x:Name="KeyUsageTxt" Text="{Binding KeyUsage}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  77. </StackPanel>
  78. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  79. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_PubKey}" Foreground="Black" FontSize="14"></TextBlock>
  80. <TextBlock x:Name="PublicKeyTxt" Text="{Binding PublicKey}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  81. </StackPanel>
  82. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  83. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_X509}" Foreground="Black" FontSize="14"></TextBlock>
  84. <TextBlock x:Name="X509Txt" Text="{Binding X509Data}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  85. </StackPanel>
  86. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  87. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_SHA1}" Foreground="Black" FontSize="14"></TextBlock>
  88. <TextBlock x:Name="SHA1AbstractTxt" Text="{Binding SHA1Digest}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  89. </StackPanel>
  90. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  91. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_MD5}" Foreground="Black" FontSize="14"></TextBlock>
  92. <TextBlock x:Name="MD5AbstractTxt" Text="{Binding MD5Digest}" Foreground="#666" FontSize="14" Width="300" TextWrapping="Wrap"></TextBlock>
  93. </StackPanel>
  94. </StackPanel>
  95. </ScrollViewer>
  96. </Border>
  97. </Grid>
  98. </UserControl>