ViewCertificateDialog.xaml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <Window x:Class="Compdfkit_Tools.PDFControl.ViewCertificateDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:Compdfkit_Tools.PDFControl"
  7. mc:Ignorable="d"
  8. Title="ViewCertificationControl" Height="670" Width="820" ResizeMode="NoResize" ShowInTaskbar="False">
  9. <Window.Resources>
  10. <local:DictionaryValueConverter x:Key="DictionaryValueConverter"/>
  11. </Window.Resources>
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="56"></RowDefinition>
  15. <RowDefinition></RowDefinition>
  16. <RowDefinition Height="56"></RowDefinition>
  17. </Grid.RowDefinitions>
  18. <Grid.ColumnDefinitions>
  19. <ColumnDefinition Width="240"></ColumnDefinition>
  20. <ColumnDefinition></ColumnDefinition>
  21. </Grid.ColumnDefinitions>
  22. <TextBlock Grid.ColumnSpan="2" Margin="10,20,10,20" Foreground="#666666" 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."></TextBlock>
  23. <ListView Grid.Row="1" Grid.Column="0" x:Name="CertificateListView" Margin="10,0,10,0" SelectionChanged="CertificateListView_OnSelectionChanged">
  24. <ListView.ItemsPanel>
  25. <ItemsPanelTemplate>
  26. <VirtualizingStackPanel Background="#FAFCFF" Margin="-5,0,0,0"/>
  27. </ItemsPanelTemplate>
  28. </ListView.ItemsPanel>
  29. <ListView.ItemTemplate>
  30. <DataTemplate>
  31. <Grid Name="SignatureGrid" Height="40">
  32. <TextBlock Text="{Binding SubjectDict, Converter={StaticResource DictionaryValueConverter}}" Margin="10,0,0,0" ToolTip="{Binding SubjectDict, Converter={StaticResource DictionaryValueConverter}}"/>
  33. </Grid>
  34. </DataTemplate>
  35. </ListView.ItemTemplate>
  36. </ListView>
  37. <Grid Grid.Row="1" Grid.Column="1">
  38. <local:CertificateInfoControl BorderBrush="#999999" Margin="0,0,10,0" BorderThickness="1" x:Name="CertificateInfoControl"></local:CertificateInfoControl>
  39. </Grid>
  40. <Button Grid.Row="2" Grid.ColumnSpan="2" Height="32" Width="112" HorizontalAlignment="Right" Margin="10" Click="ButtonBase_OnClick">Close</Button>
  41. </Grid>
  42. </Window>