1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <UserControl x:Class="Compdfkit_Tools.DigitalSignature.CPDFSignatureListControl.CPDFSignatureListControl"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:Compdfkit_Tools.DigitalSignature.CPDFSignatureListControl"
- xmlns:common="clr-namespace:Compdfkit_Tools.Common"
- mc:Ignorable="d"
- d:DesignHeight="800" d:DesignWidth="300"
- x:Name="UserControl" Background="#fff">
- <UserControl.Resources>
- <ResourceDictionary>
- <Viewbox x:Key="ValidSignaturePath" Width="20" Height="20" x:Shared="False">
- <Canvas Width="20" Height="20">
- <Path Fill="#3048BF" Data="M7.15125 14.4995C8.30837 14.4995 9.2063 13.7913 9.7756 12.6064H16.4175C16.6582 12.6064 16.8433 12.4074 16.8433 12.1713C16.8433 11.9353 16.6582 11.7409 16.4175 11.7409H10.1089C10.3264 11.0327 10.4514 10.2135 10.4838 9.31556C10.7754 9.25076 11.0762 9.21836 11.3863 9.21836C11.4928 9.21836 11.5483 9.26465 11.5483 9.3387C11.5483 9.68584 11.3169 9.98207 11.3169 10.431C11.3169 10.8476 11.6224 11.1207 12.0528 11.1207C13.0572 11.1207 14.256 9.5655 14.5568 9.5655C14.816 9.5655 14.5661 10.9309 15.7464 10.9309C15.9824 10.9309 16.2601 10.8661 16.4684 10.7273C16.6212 10.6208 16.7276 10.4681 16.7276 10.269C16.7276 10.0098 16.5517 9.77841 16.2786 9.77841C16.1305 9.77841 15.9963 9.88024 15.8852 9.88024C15.5288 9.88024 15.876 8.38986 14.8346 8.38986C13.9783 8.38986 12.8628 9.75527 12.599 9.75527C12.5573 9.75527 12.5342 9.73676 12.5342 9.69047C12.5342 9.5655 12.636 9.36185 12.636 9.13968C12.636 8.54723 12.2102 8.20009 11.5205 8.20009C11.1595 8.20009 10.8078 8.23249 10.4699 8.29266C10.2986 5.78865 9.0443 3.93262 7.26696 3.93262C5.91544 3.93262 4.97122 4.96014 4.97122 6.39035C4.97122 7.95941 5.96635 9.26465 7.04479 10.1209C6.54028 10.6301 6.14686 11.1901 5.90155 11.7409H2.856C2.61532 11.7409 2.43018 11.9353 2.43018 12.1713C2.43018 12.4028 2.61994 12.6064 2.856 12.6064H5.64235C5.62847 12.7221 5.61921 12.8378 5.61921 12.9443C5.61921 13.8978 6.15612 14.4995 7.15125 14.4995ZM7.81316 9.45916C6.93838 8.78802 5.99416 7.74661 5.99416 6.38583C5.99416 5.55733 6.51718 4.95563 7.27163 4.95563C8.50281 4.95563 9.38223 6.50617 9.46554 8.56586C8.8592 8.78802 8.29916 9.09813 7.81316 9.45916ZM3.15688 10.9679L3.67527 10.4496L4.19366 10.9633C4.35103 11.1161 4.58246 11.1161 4.73983 10.9633C4.89257 10.8106 4.89257 10.5699 4.73983 10.4172L4.22144 9.90339L4.73983 9.385C4.89257 9.23226 4.89257 8.99621 4.73983 8.84347C4.58709 8.6861 4.34641 8.6861 4.19366 8.83884L3.67527 9.35723L3.15688 8.84347C2.99951 8.69072 2.76346 8.69072 2.61072 8.84347C2.45335 8.99158 2.45335 9.23689 2.61072 9.38963L3.12448 9.90339L2.61072 10.4172C2.45335 10.5745 2.45798 10.8059 2.61072 10.9633C2.76346 11.1207 3.00414 11.1161 3.15688 10.9679ZM9.01655 11.7411H7.07258C7.28086 11.3986 7.56783 11.0376 7.91959 10.7043C7.99828 10.7506 8.07233 10.7876 8.14639 10.8247C8.23896 10.8756 8.3269 10.8941 8.41484 10.8941C8.67404 10.8941 8.89158 10.7043 8.89158 10.4544C8.89158 10.3155 8.84067 10.1859 8.7157 10.0748C8.94249 9.92211 9.18317 9.78325 9.44237 9.66754C9.3822 10.4498 9.23409 11.1533 9.01655 11.7411ZM7.27162 13.4812C6.88745 13.4812 6.69305 13.2312 6.69305 12.8424C6.69305 12.7684 6.70231 12.6897 6.7162 12.6064H8.59074C8.22972 13.1618 7.77612 13.4812 7.27162 13.4812Z"/>
- <Rectangle Width="7.5" Height="7.5" Canvas.Left="10.625" Canvas.Top="10.625" RadiusX="3.64583" RadiusY="3.64583" Fill="#30BF83"/>
- <Path Stroke="White" StrokeThickness="0.9375" Data="M12.8125 14.6875L14.2969 15.625L16.25 13.125"/>
- </Canvas>
- </Viewbox>
-
- <Viewbox x:Key="InvalidSignaturePath" Width="20" Height="20" x:Shared="False">
- <Canvas Width="20" Height="20">
- <Path Fill="#3048BF" Data="M7.15125 14.4995C8.30837 14.4995 9.2063 13.7913 9.7756 12.6064H16.4175C16.6582 12.6064 16.8433 12.4074 16.8433 12.1713C16.8433 11.9353 16.6582 11.7409 16.4175 11.7409H10.1089C10.3264 11.0327 10.4514 10.2135 10.4838 9.31556C10.7754 9.25076 11.0762 9.21836 11.3863 9.21836C11.4928 9.21836 11.5483 9.26465 11.5483 9.3387C11.5483 9.68584 11.3169 9.98207 11.3169 10.431C11.3169 10.8476 11.6224 11.1207 12.0528 11.1207C13.0572 11.1207 14.256 9.5655 14.5568 9.5655C14.816 9.5655 14.5661 10.9309 15.7464 10.9309C15.9824 10.9309 16.2601 10.8661 16.4684 10.7273C16.6212 10.6208 16.7276 10.4681 16.7276 10.269C16.7276 10.0098 16.5517 9.77841 16.2786 9.77841C16.1305 9.77841 15.9963 9.88024 15.8852 9.88024C15.5288 9.88024 15.876 8.38986 14.8346 8.38986C13.9783 8.38986 12.8628 9.75527 12.599 9.75527C12.5573 9.75527 12.5342 9.73676 12.5342 9.69047C12.5342 9.5655 12.636 9.36185 12.636 9.13968C12.636 8.54723 12.2102 8.20009 11.5205 8.20009C11.1595 8.20009 10.8078 8.23249 10.4699 8.29266C10.2986 5.78865 9.0443 3.93262 7.26696 3.93262C5.91544 3.93262 4.97122 4.96014 4.97122 6.39035C4.97122 7.95941 5.96635 9.26465 7.04479 10.1209C6.54028 10.6301 6.14686 11.1901 5.90155 11.7409H2.856C2.61532 11.7409 2.43018 11.9353 2.43018 12.1713C2.43018 12.4028 2.61994 12.6064 2.856 12.6064H5.64235C5.62847 12.7221 5.61921 12.8378 5.61921 12.9443C5.61921 13.8978 6.15612 14.4995 7.15125 14.4995ZM7.8131 9.45897C6.93832 8.78784 5.9941 7.74643 5.9941 6.38565C5.9941 5.55715 6.51712 4.95544 7.27157 4.95544C8.50275 4.95544 9.38216 6.50599 9.46548 8.56567C8.85914 8.78784 8.2991 9.09795 7.8131 9.45897ZM3.15682 10.9678L3.67521 10.4494L4.1936 10.9631C4.35097 11.1159 4.5824 11.1159 4.73977 10.9631C4.89251 10.8104 4.89251 10.5697 4.73977 10.417L4.22137 9.90321L4.73977 9.38482C4.89251 9.23208 4.89251 8.99602 4.73977 8.84328C4.58703 8.68591 4.34634 8.68591 4.1936 8.83865L3.67521 9.35705L3.15682 8.84328C2.99945 8.69054 2.7634 8.69054 2.61066 8.84328C2.45329 8.99139 2.45329 9.2367 2.61066 9.38945L3.12442 9.90321L2.61066 10.417C2.45329 10.5743 2.45792 10.8058 2.61066 10.9631C2.7634 11.1205 3.00408 11.1159 3.15682 10.9678ZM9.01649 11.7409H7.07252C7.28080 11.3984 7.56777 11.0374 7.91953 10.7041C7.99822 10.7504 8.07227 10.7875 8.14633 10.8245C8.23890 10.8754 8.32684 10.8939 8.41478 10.8939C8.67398 10.8939 8.89152 10.7041 8.89152 10.4542C8.89152 10.3153 8.84060 10.1858 8.71563 10.0747C8.94243 9.92193 9.18311 9.78307 9.44231 9.66736C9.38214 10.4496 9.23403 11.1531 9.01649 11.7409ZM7.27156 13.481C6.88739 13.481 6.69299 13.231 6.69299 12.8423C6.69299 12.7682 6.70225 12.6895 6.71614 12.6062H8.59068C8.22965 13.1616 7.77606 13.481 7.27156 13.481Z" />
- <Rectangle Canvas.Left="10.625" Canvas.Top="10.625" Width="7.5" Height="7.5" RadiusX="3.64583" RadiusY="3.64583" Fill="#BF3030" />
- <Path Data="M15.625 13.125L13.125 15.625" Stroke="White" StrokeThickness="0.9375" StrokeStartLineCap="Square" StrokeEndLineCap="Square" StrokeLineJoin="Round" />
- <Path Data="M13.125 13.125L15.625 15.625" Stroke="White" StrokeThickness="0.9375" StrokeStartLineCap="Square" StrokeEndLineCap="Square" StrokeLineJoin="Round" />
- </Canvas>
- </Viewbox>
-
- <Viewbox x:Key="UnknownSignaturePath" Width="20" Height="20" x:Shared="False">
- <Canvas Width="20" Height="20">
- <Path Fill="#3048BF" Data="M7.15125 14.4995C8.30837 14.4995 9.2063 13.7913 9.7756 12.6064H16.4175C16.6582 12.6064 16.8433 12.4074 16.8433 12.1713C16.8433 11.9353 16.6582 11.7409 16.4175 11.7409H10.1089C10.3264 11.0327 10.4514 10.2135 10.4838 9.31556C10.7754 9.25076 11.0762 9.21836 11.3863 9.21836C11.4928 9.21836 11.5483 9.26465 11.5483 9.3387C11.5483 9.68584 11.3169 9.98207 11.3169 10.431C11.3169 10.8476 11.6224 11.1207 12.0528 11.1207C13.0572 11.1207 14.256 9.5655 14.5568 9.5655C14.816 9.5655 14.5661 10.9309 15.7464 10.9309C15.9824 10.9309 16.2601 10.8661 16.4684 10.7273C16.6212 10.6208 16.7276 10.4681 16.7276 10.269C16.7276 10.0098 16.5517 9.77841 16.2786 9.77841C16.1305 9.77841 15.9963 9.88024 15.8852 9.88024C15.5288 9.88024 15.876 8.38986 14.8346 8.38986C13.9783 8.38986 12.8628 9.75527 12.599 9.75527C12.5573 9.75527 12.5342 9.73676 12.5342 9.69047C12.5342 9.5655 12.636 9.36185 12.636 9.13968C12.636 8.54723 12.2102 8.20009 11.5205 8.20009C11.1595 8.20009 10.8078 8.23249 10.4699 8.29266C10.2986 5.78865 9.0443 3.93262 7.26696 3.93262C5.91544 3.93262 4.97122 4.96014 4.97122 6.39035C4.97122 7.95941 5.96635 9.26465 7.04479 10.1209C6.54028 10.6301 6.14686 11.1901 5.90155 11.7409H2.856C2.61532 11.7409 2.43018 11.9353 2.43018 12.1713C2.43018 12.4028 2.61994 12.6064 2.856 12.6064H5.64235C5.62847 12.7221 5.61921 12.8378 5.61921 12.9443C5.61921 13.8978 6.15612 14.4995 7.15125 14.4995ZM7.8131 9.45897C6.93832 8.78784 5.9941 7.74643 5.9941 6.38565C5.9941 5.55715 6.51712 4.95544 7.27157 4.95544C8.50275 4.95544 9.38216 6.50599 9.46548 8.56567C8.85914 8.78784 8.2991 9.09795 7.8131 9.45897ZM3.15682 10.9678L3.67521 10.4494L4.1936 10.9631C4.35097 11.1159 4.5824 11.1159 4.73977 10.9631C4.89251 10.8104 4.89251 10.5697 4.73977 10.417L4.22137 9.90321L4.73977 9.38482C4.89251 9.23208 4.89251 8.99602 4.73977 8.84328C4.58703 8.68591 4.34634 8.68591 4.1936 8.83865L3.67521 9.35705L3.15682 8.84328C2.99945 8.69054 2.7634 8.69054 2.61066 8.84328C2.45329 8.99139 2.45329 9.2367 2.61066 9.38945L3.12442 9.90321L2.61066 10.417C2.45329 10.5743 2.45792 10.8058 2.61066 10.9631C2.7634 11.1205 3.00408 11.1159 3.15682 10.9678ZM9.01649 11.7409H7.07252C7.28080 11.3984 7.56777 11.0374 7.91953 10.7041C7.99822 10.7504 8.07227 10.7875 8.14633 10.8245C8.23890 10.8754 8.32684 10.8939 8.41478 10.8939C8.67398 10.8939 8.89152 10.7041 8.89152 10.4542C8.89152 10.3153 8.84060 10.1858 8.71563 10.0747C8.94243 9.92193 9.18311 9.78307 9.44231 9.66736C9.38214 10.4496 9.23403 11.1531 9.01649 11.7409ZM7.27156 13.481C6.88739 13.481 6.69299 13.231 6.69299 12.8423C6.69299 12.7682 6.70225 12.6895 6.71614 12.6062H8.59068C8.22965 13.1616 7.77606 13.481 7.27156 13.481Z" />
- <Rectangle Canvas.Left="10.625" Canvas.Top="10.625" Width="7.5" Height="7.5" RadiusX="3.64583" RadiusY="3.64583" Fill="#FFA400" />
- <Path Fill="#FFFFFF" Data="M14.625 15.247V15.3482H13.9881V15.247C13.9881 15.0268 14.0238 14.8363 14.1071 14.6815C14.1845 14.5149 14.4107 14.2708 14.7798 13.9435L14.881 13.8304C14.9881 13.6935 15.0476 13.5506 15.0476 13.3958C15.0476 13.1875 14.9881 13.0268 14.875 12.9077C14.756 12.7887 14.5833 12.7292 14.369 12.7292C14.1012 12.7292 13.9048 12.8125 13.7857 12.9851C13.6786 13.128 13.625 13.3304 13.625 13.5923H13C13 13.1577 13.125 12.8185 13.375 12.5685C13.625 12.3125 13.9702 12.1875 14.4107 12.1875C14.7917 12.1875 15.1012 12.2887 15.3393 12.503C15.5774 12.7113 15.6964 12.997 15.6964 13.3542C15.6964 13.6458 15.619 13.8899 15.4702 14.0804C15.4167 14.1458 15.25 14.3006 14.9702 14.5446C14.8571 14.6399 14.7738 14.747 14.7202 14.8542C14.6548 14.9732 14.625 15.1042 14.625 15.247ZM14.6131 16.4017C14.5298 16.4791 14.4226 16.5207 14.3036 16.5207C14.1845 16.5207 14.0774 16.4791 13.9941 16.3957C13.9107 16.3124 13.8691 16.2112 13.8691 16.0922C13.8691 15.9672 13.9107 15.866 13.9941 15.7886C14.0774 15.7053 14.1845 15.6696 14.3036 15.6696C14.4286 15.6696 14.5357 15.7053 14.6191 15.7886C14.7024 15.866 14.7441 15.9672 14.7441 16.0922C14.7441 16.2172 14.6964 16.3184 14.6131 16.4017Z" />
- </Canvas>
- </Viewbox>
- <local:SignatureStatusToPathConverter x:Key="SignatureStatusToPathConverter" />
- <common:BotaResourceConverter x:Key="BotaResourceConverter" />
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Grid Height="50">
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="auto"/>
- </Grid.ColumnDefinitions>
- <TextBlock Text="{Binding Converter={StaticResource BotaResourceConverter},ConverterParameter=Title_Sig}" FontSize="14" Foreground="#42464D" Margin="16,0,0,0" VerticalAlignment="Center"/>
- </Grid>
- <ListView Grid.Row="1" Name="SignatureList" ScrollViewer.HorizontalScrollBarVisibility="Hidden" BorderThickness="0" SelectionMode="Single" Visibility="Collapsed" MouseLeftButtonUp="SignatureList_OnMouseLeftButtonUp" ContextMenuOpening="SignatureList_ContextMenuOpening" MouseRightButtonDown="SignatureList_MouseRightButtonDown">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <VirtualizingStackPanel Background="#FAFCFF" Margin="-5,0,0,0"/>
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Grid Name="SignatureGrid" Height="40">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="30"/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Canvas Height="20" Width="20">
- <ContentControl Content="{Binding Status, Converter={StaticResource SignatureStatusToPathConverter}, ConverterParameter={x:Reference UserControl}}" />
- </Canvas>
- <TextBlock VerticalAlignment="Center" Text="{Binding Signer}" Grid.Column="1" Margin="10,0,0,0"/>
- </Grid>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- </UserControl>
|