SummaryControl.xaml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <UserControl x:Class="ComPDFKit.Controls.PDFControl.SummaryControl"
  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="160" 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_Summary}" 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_IssuedTo}" Foreground="Black" FontSize="14"></TextBlock>
  24. <TextBlock Text="{Binding Award}" Foreground="#666" FontSize="14"></TextBlock>
  25. </StackPanel>
  26. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  27. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_Issuer}" Foreground="Black" FontSize="14"></TextBlock>
  28. <TextBlock Text="{Binding Grantor}" Foreground="#666" FontSize="14"></TextBlock>
  29. </StackPanel>
  30. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  31. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_ValidFrom}" Foreground="Black" FontSize="14"></TextBlock>
  32. <TextBlock Text="{Binding ValidityFrom}" Foreground="#666" FontSize="14"></TextBlock>
  33. </StackPanel>
  34. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  35. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_ValidTo}" Foreground="Black" FontSize="14"></TextBlock>
  36. <TextBlock Text="{Binding ValidityTo}" Foreground="#666" FontSize="14"></TextBlock>
  37. </StackPanel>
  38. <StackPanel Orientation="Horizontal" Margin="0,0,0,6">
  39. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Text_Usage}" Foreground="Black" FontSize="14"></TextBlock>
  40. <TextBlock Text="{Binding IntendedUsage}" Foreground="#666" FontSize="14"></TextBlock>
  41. </StackPanel>
  42. </StackPanel>
  43. </ScrollViewer>
  44. </Border>
  45. </Grid>
  46. </UserControl>