SignatureStatusBarControl.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <UserControl x:Class="Compdfkit_Tools.PDFControl.SignatureStatusBarControl"
  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. xmlns:common="clr-namespace:Compdfkit_Tools.Common"
  8. mc:Ignorable="d"
  9. d:DesignHeight="48" d:DesignWidth="1399">
  10. <UserControl.Resources>
  11. <ResourceDictionary>
  12. <common:SigResourceConverter x:Key="SigResourceConverter"></common:SigResourceConverter>
  13. </ResourceDictionary>
  14. </UserControl.Resources>
  15. <Grid Background="#DDE9FF">
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition Width="48"></ColumnDefinition>
  18. <ColumnDefinition></ColumnDefinition>
  19. <ColumnDefinition></ColumnDefinition>
  20. </Grid.ColumnDefinitions>
  21. <Grid>
  22. <Border x:Name="ValidBorder" Visibility="Collapsed">
  23. <Viewbox Width="26" Height="23" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
  24. <Canvas Width="26" Height="23">
  25. <Path Fill="#3048BF" Data="M8.44214 17.198C10.2935 17.198 11.7302 16.0649 12.6411 14.1691H23.2681C23.6532 14.1691 23.9495 13.8507 23.9495 13.473C23.9495 13.0953 23.6532 12.7843 23.2681 12.7843H13.1743C13.5224 11.6512 13.7223 10.3404 13.7742 8.90373C14.2407 8.80005 14.7221 8.74821 15.2183 8.74821C15.3886 8.74821 15.4775 8.82227 15.4775 8.94075C15.4775 9.49617 15.1072 9.97013 15.1072 10.6885C15.1072 11.355 15.5959 11.7919 16.2847 11.7919C17.8917 11.7919 19.8097 9.30363 20.2911 9.30363C20.7058 9.30363 20.3059 11.4883 22.1943 11.4883C22.572 11.4883 23.0164 11.3846 23.3496 11.1624C23.594 10.9921 23.7643 10.7477 23.7643 10.4293C23.7643 10.0146 23.4829 9.64429 23.046 9.64429C22.809 9.64429 22.5942 9.80721 22.4165 9.80721C21.8463 9.80721 22.4017 7.42261 20.7354 7.42261C19.3654 7.42261 17.5806 9.60726 17.1585 9.60726C17.0919 9.60726 17.0548 9.57764 17.0548 9.50358C17.0548 9.30363 17.2178 8.97778 17.2178 8.62231C17.2178 7.6744 16.5365 7.11898 15.433 7.11898C14.8554 7.11898 14.2926 7.17082 13.752 7.26709C13.4779 3.26066 11.471 0.291016 8.62728 0.291016C6.46484 0.291016 4.9541 1.93506 4.9541 4.22339C4.9541 6.73389 6.54631 8.82227 8.27181 10.1923C7.4646 11.0069 6.83512 11.903 6.44263 12.7843H1.56974C1.18465 12.7843 0.888428 13.0953 0.888428 13.473C0.888428 13.8433 1.19206 14.1691 1.56974 14.1691H6.02791C6.0057 14.3542 5.99089 14.5394 5.99089 14.7097C5.99089 16.2353 6.84994 17.198 8.44214 17.198ZM9.50114 9.1333C8.10148 8.05949 6.59074 6.39323 6.59074 4.21598C6.59074 2.89038 7.42757 1.92765 8.63468 1.92765C10.6046 1.92765 12.0116 4.40853 12.1449 7.70402C11.1748 8.05949 10.2787 8.55566 9.50114 9.1333ZM2.05111 11.5475L2.88053 10.7181L3.70996 11.5401C3.96175 11.7845 4.33203 11.7845 4.58382 11.5401C4.82821 11.2957 4.82821 10.9106 4.58382 10.6663L3.75439 9.84424L4.58382 9.01481C4.82821 8.77043 4.82821 8.39274 4.58382 8.14836C4.33944 7.89657 3.95435 7.89657 3.70996 8.14095L2.88053 8.97038L2.05111 8.14836C1.79932 7.90397 1.42163 7.90397 1.17725 8.14836C0.925456 8.38533 0.925456 8.77783 1.17725 9.02222L1.99927 9.84424L1.17725 10.6663C0.925456 10.918 0.932861 11.2883 1.17725 11.5401C1.42163 11.7919 1.80672 11.7845 2.05111 11.5475ZM11.4266 12.7843H8.31624C8.6495 12.2362 9.10864 11.6586 9.67147 11.1254C9.79736 11.1995 9.91585 11.2587 10.0343 11.318C10.1825 11.3994 10.3232 11.429 10.4639 11.429C10.8786 11.429 11.2266 11.1254 11.2266 10.7255C11.2266 10.5033 11.1452 10.296 10.9452 10.1182C11.3081 9.87386 11.6932 9.65169 12.1079 9.46655C12.0116 10.7181 11.7747 11.8438 11.4266 12.7843ZM8.63468 15.5688C8.02002 15.5688 7.70898 15.1689 7.70898 14.5468C7.70898 14.4283 7.7238 14.3024 7.74601 14.1691H10.7453C10.1676 15.0578 9.44189 15.5688 8.63468 15.5688Z"/>
  26. <Rectangle Margin="14,11,0,0" Width="12" Height="12" RadiusX="5.83333" RadiusY="5.83333" Fill="#30BF83"/>
  27. <Path Data="M17.5 17.5L19.875 19L23 15" Stroke="White" StrokeThickness="1.5"/>
  28. </Canvas>
  29. </Viewbox>
  30. </Border>
  31. <Border x:Name="InvalidBorder" Visibility="Collapsed">
  32. <Viewbox Width="26" Height="23" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
  33. <Canvas Width="26" Height="23">
  34. <Path Fill="#3048BF" Data="M8.44214 17.198C10.2935 17.198 11.7302 16.0649 12.6411 14.1691H23.2681C23.6532 14.1691 23.9495 13.8507 23.9495 13.473C23.9495 13.0953 23.6532 12.7843 23.2681 12.7843H13.1743C13.5224 11.6512 13.7223 10.3404 13.7742 8.90373C14.2407 8.80005 14.7221 8.74821 15.2183 8.74821C15.3886 8.74821 15.4775 8.82227 15.4775 8.94075C15.4775 9.49617 15.1072 9.97013 15.1072 10.6885C15.1072 11.355 15.5959 11.7919 16.2847 11.7919C17.8917 11.7919 19.8097 9.30363 20.2911 9.30363C20.7058 9.30363 20.3059 11.4883 22.1943 11.4883C22.572 11.4883 23.0164 11.3846 23.3496 11.1624C23.594 10.9921 23.7643 10.7477 23.7643 10.4293C23.7643 10.0146 23.4829 9.64429 23.046 9.64429C22.809 9.64429 22.5942 9.80721 22.4165 9.80721C21.8463 9.80721 22.4017 7.42261 20.7354 7.42261C19.3654 7.42261 17.5806 9.60726 17.1585 9.60726C17.0919 9.60726 17.0548 9.57764 17.0548 9.50358C17.0548 9.30363 17.2178 8.97778 17.2178 8.62231C17.2178 7.6744 16.5365 7.11898 15.433 7.11898C14.8554 7.11898 14.2926 7.17082 13.752 7.26709C13.4779 3.26066 11.471 0.291016 8.62728 0.291016C6.46484 0.291016 4.9541 1.93506 4.9541 4.22339C4.9541 6.73389 6.54631 8.82227 8.27181 10.1923C7.4646 11.0069 6.83512 11.903 6.44263 12.7843H1.56974C1.18465 12.7843 0.888428 13.0953 0.888428 13.473C0.888428 13.8433 1.19206 14.1691 1.56974 14.1691H6.02791C6.0057 14.3542 5.99089 14.5394 5.99089 14.7097C5.99089 16.2353 6.84994 17.198 8.44214 17.198ZM9.50114 9.1333C8.10148 8.05949 6.59074 6.39323 6.59074 4.21598C6.59074 2.89038 7.42757 1.92765 8.63468 1.92765C10.6046 1.92765 12.0116 4.40853 12.1449 7.70402C11.1748 8.05949 10.2787 8.55566 9.50114 9.1333ZM2.05111 11.5475L2.88053 10.7181L3.70996 11.5401C3.96175 11.7845 4.33203 11.7845 4.58382 11.5401C4.82821 11.2957 4.82821 10.9106 4.58382 10.6663L3.75439 9.84424L4.58382 9.01481C4.82821 8.77043 4.82821 8.39274 4.58382 8.14836C4.33944 7.89657 3.95435 7.89657 3.70996 8.14095L2.88053 8.97038L2.05111 8.14836C1.79932 7.90397 1.42163 7.90397 1.17725 8.14836C0.925456 8.38533 0.925456 8.77783 1.17725 9.02222L1.99927 9.84424L1.17725 10.6663C0.925456 10.918 0.932861 11.2883 1.17725 11.5401C1.42163 11.7919 1.80672 11.7845 2.05111 11.5475ZM11.4266 12.7843H8.31624C8.6495 12.2362 9.10864 11.6586 9.67147 11.1254C9.79736 11.1995 9.91585 11.2587 10.0343 11.318C10.1825 11.3994 10.3232 11.429 10.4639 11.429C10.8786 11.429 11.2266 11.1254 11.2266 10.7255C11.2266 10.5033 11.1452 10.296 10.9452 10.1182C11.3081 9.87386 11.6932 9.65169 12.1079 9.46655C12.0116 10.7181 11.7747 11.8438 11.4266 12.7843ZM8.63468 15.5688C8.02002 15.5688 7.70898 15.1689 7.70898 14.5468C7.70898 14.4283 7.7238 14.3024 7.74601 14.1691H10.7453C10.1676 15.0578 9.44189 15.5688 8.63468 15.5688Z"/>
  35. <Rectangle Margin="14,11,0,0" Width="12" Height="12" RadiusX="5.83333" RadiusY="5.83333" Fill="#BF3030"/>
  36. <Path Margin="14,11,0,0" Data="M8 4L4 8" Stroke="White" StrokeThickness="1.5" StrokeEndLineCap="Square" StrokeStartLineCap="Square" StrokeLineJoin="Round"/>
  37. <Path Margin="14,11,0,0" Data="M4 4L8 8" Stroke="White" StrokeThickness="1.5" StrokeEndLineCap="Square" StrokeStartLineCap="Square" StrokeLineJoin="Round"/>
  38. </Canvas>
  39. </Viewbox>
  40. </Border>
  41. <Border x:Name="UnknownBorder" Visibility="Collapsed">
  42. <Viewbox Width="26" Height="23" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
  43. <Canvas Width="26" Height="23">
  44. <Path Fill="#3048BF" Data="M8.44214 17.198C10.2935 17.198 11.7302 16.0649 12.6411 14.1691H23.2681C23.6532 14.1691 23.9495 13.8507 23.9495 13.473C23.9495 13.0953 23.6532 12.7843 23.2681 12.7843H13.1743C13.5224 11.6512 13.7223 10.3404 13.7742 8.90373C14.2407 8.80005 14.7221 8.74821 15.2183 8.74821C15.3886 8.74821 15.4775 8.82227 15.4775 8.94075C15.4775 9.49617 15.1072 9.97013 15.1072 10.6885C15.1072 11.355 15.5959 11.7919 16.2847 11.7919C17.8917 11.7919 19.8097 9.30363 20.2911 9.30363C20.7058 9.30363 20.3059 11.4883 22.1943 11.4883C22.572 11.4883 23.0164 11.3846 23.3496 11.1624C23.594 10.9921 23.7643 10.7477 23.7643 10.4293C23.7643 10.0146 23.4829 9.64429 23.046 9.64429C22.809 9.64429 22.5942 9.80721 22.4165 9.80721C21.8463 9.80721 22.4017 7.42261 20.7354 7.42261C19.3654 7.42261 17.5806 9.60726 17.1585 9.60726C17.0919 9.60726 17.0548 9.57764 17.0548 9.50358C17.0548 9.30363 17.2178 8.97778 17.2178 8.62231C17.2178 7.6744 16.5365 7.11898 15.433 7.11898C14.8554 7.11898 14.2926 7.17082 13.752 7.26709C13.4779 3.26066 11.471 0.291016 8.62728 0.291016C6.46484 0.291016 4.9541 1.93506 4.9541 4.22339C4.9541 6.73389 6.54631 8.82227 8.27181 10.1923C7.4646 11.0069 6.83512 11.903 6.44263 12.7843H1.56974C1.18465 12.7843 0.888428 13.0953 0.888428 13.473C0.888428 13.8433 1.19206 14.1691 1.56974 14.1691H6.02791C6.0057 14.3542 5.99089 14.5394 5.99089 14.7097C5.99089 16.2353 6.84994 17.198 8.44214 17.198ZM9.50114 9.1333C8.10148 8.05949 6.59074 6.39323 6.59074 4.21598C6.59074 2.89038 7.42757 1.92765 8.63468 1.92765C10.6046 1.92765 12.0116 4.40853 12.1449 7.70402C11.1748 8.05949 10.2787 8.55566 9.50114 9.1333ZM2.05111 11.5475L2.88053 10.7181L3.70996 11.5401C3.96175 11.7845 4.33203 11.7845 4.58382 11.5401C4.82821 11.2957 4.82821 10.9106 4.58382 10.6663L3.75439 9.84424L4.58382 9.01481C4.82821 8.77043 4.82821 8.39274 4.58382 8.14836C4.33944 7.89657 3.95435 7.89657 3.70996 8.14095L2.88053 8.97038L2.05111 8.14836C1.79932 7.90397 1.42163 7.90397 1.17725 8.14836C0.925456 8.38533 0.925456 8.77783 1.17725 9.02222L1.99927 9.84424L1.17725 10.6663C0.925456 10.918 0.932861 11.2883 1.17725 11.5401C1.42163 11.7919 1.80672 11.7845 2.05111 11.5475ZM11.4266 12.7843H8.31624C8.6495 12.2362 9.10864 11.6586 9.67147 11.1254C9.79736 11.1995 9.91585 11.2587 10.0343 11.318C10.1825 11.3994 10.3232 11.429 10.4639 11.429C10.8786 11.429 11.2266 11.1254 11.2266 10.7255C11.2266 10.5033 11.1452 10.296 10.9452 10.1182C11.3081 9.87386 11.6932 9.65169 12.1079 9.46655C12.0116 10.7181 11.7747 11.8438 11.4266 12.7843ZM8.63468 15.5688C8.02002 15.5688 7.70898 15.1689 7.70898 14.5468C7.70898 14.4283 7.7238 14.3024 7.74601 14.1691H10.7453C10.1676 15.0578 9.44189 15.5688 8.63468 15.5688Z"/>
  45. <Rectangle Margin="14,11,0,0" Width="12" Height="12" RadiusX="5.83333" RadiusY="5.83333" Fill="#FFA400"/>
  46. <Path Margin="14,11,0,0" Fill="White" Data="M6.40005 7.39524V7.55714H5.381V7.39524C5.381 7.04286 5.43814 6.7381 5.57148 6.49048C5.69529 6.22381 6.05719 5.83333 6.64767 5.30952L6.80957 5.12857C6.981 4.90952 7.07624 4.68095 7.07624 4.43333C7.07624 4.1 6.981 3.84286 6.80005 3.65238C6.60957 3.4619 6.33338 3.36667 5.99053 3.36667C5.56195 3.36667 5.24767 3.5 5.05719 3.77619C4.88576 4.00476 4.80005 4.32857 4.80005 4.74762H3.80005C3.80005 4.05238 4.00005 3.50952 4.40005 3.10952C4.80005 2.7 5.35243 2.5 6.05719 2.5C6.66672 2.5 7.16195 2.6619 7.54291 3.00476C7.92386 3.3381 8.11433 3.79524 8.11433 4.36667C8.11433 4.83333 7.99052 5.22381 7.75243 5.52857C7.66672 5.63333 7.40005 5.88095 6.95243 6.27143C6.77148 6.42381 6.63814 6.59524 6.55243 6.76667C6.44767 6.95714 6.40005 7.16667 6.40005 7.39524ZM6.381 9.24286C6.24767 9.36667 6.07624 9.43333 5.88576 9.43333C5.69529 9.43333 5.52386 9.36667 5.39053 9.23333C5.25719 9.1 5.19053 8.9381 5.19053 8.74762C5.19053 8.54762 5.25719 8.38571 5.39053 8.26191C5.52386 8.12857 5.69529 8.07143 5.88576 8.07143C6.08576 8.07143 6.25719 8.12857 6.39053 8.26191C6.52386 8.38571 6.59053 8.54762 6.59053 8.74762C6.59053 8.94762 6.51433 9.10952 6.381 9.24286Z"/>
  47. </Canvas>
  48. </Viewbox>
  49. </Border>
  50. </Grid>
  51. <TextBlock Grid.Column="1" Text="{Binding MessageString}" VerticalAlignment="Center" FontSize="14" FontFamily="Microsoft YaHei"></TextBlock>
  52. <Button Grid.Column="2" Height="32" Width="128" HorizontalAlignment="Right" Margin="10" BorderBrush="#1460F3" Foreground="#1460F3" Content="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Button_AllSig}" Background="#DDE9FF" Click="ButtonViewSignature_OnClick"></Button>
  53. </Grid>
  54. </UserControl>