ViewCertificateDialog.xaml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. xmlns:common="clr-namespace:Compdfkit_Tools.Common"
  8. mc:Ignorable="d"
  9. Title="ViewCertificationControl" Height="670" Width="820" ResizeMode="NoResize" ShowInTaskbar="False">
  10. <Window.Resources>
  11. <local:DictionaryValueConverter x:Key="DictionaryValueConverter"/>
  12. <common:SigResourceConverter x:Key="SigResourceConverter"></common:SigResourceConverter>
  13. </Window.Resources>
  14. <Grid>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="56"></RowDefinition>
  17. <RowDefinition></RowDefinition>
  18. <RowDefinition Height="56"></RowDefinition>
  19. </Grid.RowDefinitions>
  20. <Grid.ColumnDefinitions>
  21. <ColumnDefinition Width="240"></ColumnDefinition>
  22. <ColumnDefinition></ColumnDefinition>
  23. </Grid.ColumnDefinitions>
  24. <TextBlock Grid.ColumnSpan="2" Margin="10,20,10,20" Foreground="#666666" Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_ViewIDFile}"></TextBlock>
  25. <ListView Grid.Row="1" Grid.Column="0" x:Name="CertificateListView" Margin="10,0,10,0" SelectionChanged="CertificateListView_OnSelectionChanged">
  26. <ListView.ItemsPanel>
  27. <ItemsPanelTemplate>
  28. <VirtualizingStackPanel Background="#FAFCFF" Margin="-5,0,0,0"/>
  29. </ItemsPanelTemplate>
  30. </ListView.ItemsPanel>
  31. <ListView.ItemTemplate>
  32. <DataTemplate>
  33. <Grid Name="SignatureGrid" Height="40">
  34. <TextBlock Text="{Binding SubjectDict, Converter={StaticResource DictionaryValueConverter}}" Margin="10,0,0,0" ToolTip="{Binding SubjectDict, Converter={StaticResource DictionaryValueConverter}}"/>
  35. </Grid>
  36. </DataTemplate>
  37. </ListView.ItemTemplate>
  38. </ListView>
  39. <Grid Grid.Row="1" Grid.Column="1">
  40. <local:CertificateInfoControl BorderBrush="#999999" Margin="0,0,10,0" BorderThickness="1" x:Name="CertificateInfoControl"></local:CertificateInfoControl>
  41. </Grid>
  42. <Button Grid.Row="2" Grid.ColumnSpan="2" Height="32" Width="112" HorizontalAlignment="Right" Margin="10" Click="ButtonBase_OnClick"
  43. Content="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Button_Close}"></Button>
  44. </Grid>
  45. </Window>