|
@@ -1,172 +1,502 @@
|
|
|
-<UserControl x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.LinkAnnotProperty"
|
|
|
- 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:PDF_Office.Views.PropertyPanel.AnnotPanel"
|
|
|
- xmlns:Convert="clr-namespace:PDF_Office.DataConvert"
|
|
|
- mc:Ignorable="d"
|
|
|
- d:DesignHeight="450" d:DesignWidth="800">
|
|
|
+<UserControl
|
|
|
+ x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.LinkAnnotProperty"
|
|
|
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
+ xmlns:AnnotPanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
|
|
|
+ xmlns:Convert="clr-namespace:PDF_Office.DataConvert"
|
|
|
+ xmlns:CustomControl="clr-namespace:PDF_Office.CustomControl"
|
|
|
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
+ xmlns:data="clr-namespace:ComPDFKit.PDFDocument;assembly=ComPDFKit.Desk"
|
|
|
+ xmlns:helper="clr-namespace:PDF_Office.Helper"
|
|
|
+ xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
+ xmlns:local="clr-namespace:PDF_Office.Views.BOTA"
|
|
|
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
+ xmlns:prism="http://prismlibrary.com/"
|
|
|
+ xmlns:property="clr-namespace:PDF_Office.Properties"
|
|
|
+ Name="LinkAnnotPropertyContent"
|
|
|
+ d:DataContext="{d:DesignInstance Type=AnnotPanel:LinkAnnotPropertyViewModel}"
|
|
|
+ d:DesignHeight="680"
|
|
|
+ d:DesignWidth="260"
|
|
|
+ prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
+ mc:Ignorable="d">
|
|
|
<UserControl.Resources>
|
|
|
<ResourceDictionary>
|
|
|
- <!--<ResourceDictionary.MergedDictionaries>
|
|
|
- <ResourceDictionary Source="../Resources/Style/ToggleButtonStyle.xaml"/>
|
|
|
- </ResourceDictionary.MergedDictionaries>-->
|
|
|
- <Convert:StringToVisibleConvert x:Key="StringToVisibleConvert"/>
|
|
|
- <Convert:StringToUnVisibleConvert x:Key="StringToUnVisibleConvert"></Convert:StringToUnVisibleConvert>
|
|
|
+ <ResourceDictionary.MergedDictionaries>
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/Styles/RadioButtonStyle.xaml" />
|
|
|
+ </ResourceDictionary.MergedDictionaries>
|
|
|
+ <Convert:ObjectConvert x:Key="ObjectConvert" />
|
|
|
+ <Convert:StringToVisibleConvert x:Key="StringToVisibleConvert" />
|
|
|
+ <Convert:StringToUnVisibleConvert x:Key="StringToUnVisibleConvert" />
|
|
|
+ <Convert:BoolToVisible x:Key="BoolToVisible" />
|
|
|
</ResourceDictionary>
|
|
|
</UserControl.Resources>
|
|
|
<Grid>
|
|
|
- <StackPanel>
|
|
|
- <TextBlock Name="AnnotTypeTitle" FontFamily="Segoe UI" FontWeight="Bold" FontSize="18" LineHeight="24" HorizontalAlignment="Center" Margin="0,12,0,12">Hyperlink</TextBlock>
|
|
|
- <StackPanel Orientation="Horizontal" Margin="12,0,0,0">
|
|
|
- <ToggleButton Name="LinkPageBtn" Width="72" Height="80" VerticalContentAlignment="Center" Tag="Page" Background="Transparent" BorderThickness="0" IsChecked="True">
|
|
|
- <StackPanel VerticalAlignment="Center">
|
|
|
- <Path Margin="8 8 8 8" Fill="#000000" HorizontalAlignment="Center">
|
|
|
+ <StackPanel Background="White" Orientation="Vertical">
|
|
|
+ <TextBlock
|
|
|
+ Name="AnnotTypeTitle"
|
|
|
+ Margin="0,12,0,12"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ FontFamily="Segoe UI"
|
|
|
+ FontSize="18"
|
|
|
+ FontWeight="Bold"
|
|
|
+ LineHeight="24">
|
|
|
+ Link
|
|
|
+ </TextBlock>
|
|
|
+ <StackPanel
|
|
|
+ Name="ToggleButtonTab"
|
|
|
+ Margin="12,0,0,0"
|
|
|
+ Orientation="Horizontal">
|
|
|
+ <RadioButton
|
|
|
+ Name="LinkPageBtn"
|
|
|
+ Width="75"
|
|
|
+ Height="28"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
+ Command="{Binding ToggleButtonTabCommand}"
|
|
|
+ GroupName="LinkTab"
|
|
|
+ IsChecked="True"
|
|
|
+ Style="{StaticResource PageViewRadioBtn}"
|
|
|
+ Tag="Page">
|
|
|
+ <!--<ToggleButton.CommandParameter>
|
|
|
+ <MultiBinding Converter="{StaticResource ResourceKey=ObjectConvert}" Mode="TwoWay">
|
|
|
+ <MultiBinding.Bindings>
|
|
|
+ <Binding ElementName="LinkPageBtn" />
|
|
|
+ -->
|
|
|
+ <!--<Binding ElementName="LinkWebBtn" />
|
|
|
+ <Binding ElementName="LinkMailBtn" />-->
|
|
|
+ <!--
|
|
|
+ </MultiBinding.Bindings>
|
|
|
+ </MultiBinding>
|
|
|
+ </ToggleButton.CommandParameter>-->
|
|
|
+ <StackPanel>
|
|
|
+ <Path
|
|
|
+ Margin="8,8,8,8"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Fill="#252629">
|
|
|
<Path.Data>
|
|
|
- M10.7071068,0 L15,4.29289322 L15,16 L1,16 L1,0 L10.7071068,0 Z M10.293,1 L2,1 L2,15 L14,15 L14,4.707 L10.293,1 Z M12,11 L12,12 L4,
|
|
|
- 12 L4,11 L12,11 Z M12,9 L12,10 L4,10 L4,9 L12,9 Z M12,7 L12,8 L4,8 L4,7 L12,7 Z M8,5 L8,6 L4,6 L4,5 L8,5 Z
|
|
|
+ M12.8335 14.5V5.33432L9.70479 1.5H3.8335V14.5H12.8335ZM3.3335
|
|
|
+ 0C2.78121 0 2.3335 0.447715 2.3335 1V15C2.3335 15.5523 2.78121 16 3.3335
|
|
|
+ 16H13.3335C13.8858 16 14.3335 15.5523 14.3335 15V5.15622C14.3335 4.92583
|
|
|
+ 14.2539 4.70251 14.1083 4.524L10.7169 0.367788C10.527 0.135042 10.2425
|
|
|
+ 0 9.94214 0H3.3335ZM9.8335 7.25H4.8335V5.75H9.8335V7.25ZM4.8335
|
|
|
+ 10.25H11.8335V8.75H4.8335V10.25Z
|
|
|
</Path.Data>
|
|
|
</Path>
|
|
|
- <TextBlock x:Name="LinkPageText" Width="36" TextWrapping="Wrap" FontSize="12" FontFamily="Segoe UI" LineHeight="16" TextAlignment="Center"/>
|
|
|
+ <TextBlock
|
|
|
+ x:Name="LinkPageText"
|
|
|
+ Width="36"
|
|
|
+ FontFamily="Segoe UI"
|
|
|
+ FontSize="12"
|
|
|
+ LineHeight="16"
|
|
|
+ TextAlignment="Center"
|
|
|
+ TextWrapping="Wrap" />
|
|
|
</StackPanel>
|
|
|
- </ToggleButton>
|
|
|
+ </RadioButton>
|
|
|
|
|
|
- <ToggleButton Name="LinkWebBtn" Width="72" Height="80" VerticalContentAlignment="Center" Tag="Web" Background="Transparent" BorderThickness="0">
|
|
|
- <StackPanel Grid.Column="1" >
|
|
|
- <Path Margin="8 8 8 8" Fill="#000000" HorizontalAlignment="Center">
|
|
|
+ <RadioButton
|
|
|
+ Name="LinkWebBtn"
|
|
|
+ Width="75"
|
|
|
+ Height="28"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
+ Background="Transparent"
|
|
|
+ Command="{Binding ToggleButtonTabCommand}"
|
|
|
+ GroupName="LinkTab"
|
|
|
+ IsChecked="False"
|
|
|
+ Style="{StaticResource PageViewRadioBtn}"
|
|
|
+ Tag="Web">
|
|
|
+ <StackPanel>
|
|
|
+ <Path
|
|
|
+ Margin="8,8,8,8"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Fill="#252629">
|
|
|
<Path.Data>
|
|
|
- M8,0 C12.418278,0 16,3.581722 16,8 C16,12.418278 12.418278,16 8,16 C3.581722,16 0,12.418278 0,8 C0,
|
|
|
- 3.581722 3.581722,0 8,0 Z M10.015957,11.4996518 L5.98404305,11.4996518 C6.28228653,12.6171156 6.71860376,
|
|
|
- 13.7718221 7.29369179,14.9638748 C7.52703012,14.9881352 7.76212948,15 8,15 C8.23787052,15 8.47296988,14.9881352 8.70473856,14.9649652 L8.5527864,
|
|
|
- 15.2763932 C9.20429615,13.9733737 9.69172111,12.7145042 10.015957,11.4996518 Z M4.95140445,11.5005273 L1.93671038,11.5004062 C2.83671487,
|
|
|
- 13.0560047 4.31818608,14.2331131 6.08391456,14.7345218 C5.59233631,13.6294852 5.2144726,12.5517364 4.95140445,11.5005273 Z M14.0632896,
|
|
|
- 11.5004062 L11.0485955,11.5005273 C10.7855274,12.5517364 10.4076637,13.6294852 9.91549498,14.733701 C11.6818139,14.2331131 13.1632851,
|
|
|
- 13.0560047 14.0632896,11.5004062 Z M4.73409625,5.50071837 L1.45951741,5.5002913 C1.16263785,6.27661068 1,7.11931229 1,
|
|
|
- 8 C1,8.88106408 1.16277689,9.72410957 1.4598981,10.5007039 L4.73428007,10.5002845 C4.5781846,9.64883923 4.5,8.81539751 4.5,8 C4.5,
|
|
|
- 7.18492263 4.57812322,6.35181522 4.73409625,5.50071837 Z M10.2481144,5.50109727 L5.7518856,5.50109727 C5.583851,
|
|
|
- 6.3567708 5.5,7.18972192 5.5,8 C5.5,8.81059324 5.58391624,9.64387716 5.75208172,10.4999012 L10.2479183,10.4999012 C10.4160838,9.64387716 10.5,
|
|
|
- 8.81059324 10.5,8 C10.5,7.18972192 10.416149,6.3567708 10.2481144,5.50109727 Z M14.5404826,5.5002913 L11.2659038,5.50071837 C11.4218768,6.35181522 11.5,
|
|
|
- 7.18492263 11.5,8 C11.5,8.81539751 11.4218154,9.64883923 11.2657199,10.5002845 L14.5401019,10.5007039 C14.8372231,9.72410957 15,8.88106408 15,8 C15,
|
|
|
- 7.11931229 14.8373622,6.27661068 14.5404826,5.5002913 Z M6.08450502,1.26629895 L5.91841413,1.31470614 C4.22534161,1.84130637 2.80783045,2.99335133 1.93613744,
|
|
|
- 4.50058424 L4.95115335,4.5004762 C5.21423213,3.44894951 5.5921797,2.37086613 6.08450502,1.26629895 Z M8,1 C7.76212948,1 7.52703012,1.01186476 7.29526144,
|
|
|
- 1.03503476 L7.4472136,0.723606798 C6.79552511,2.02698377 6.30801146,3.28618649 5.98377622,4.50134805 L10.0162238,4.50134805 C9.73005017,3.42883299 9.31668229,
|
|
|
- 2.32200977 8.77550381,1.18078687 L8.70473856,1.03503476 C8.47296988,1.01186476 8.23787052,1 8,1 Z M9.91608544,1.26547815 L10.1069462,1.70819247 C10.50689,
|
|
|
- 2.65884847 10.8209632,3.58962551 11.0488466,4.5004762 L14.0638626,4.50058424 C13.1639139,2.94449491 11.6821887,1.76699331 9.91608544,1.26547815 Z
|
|
|
+ M8.66618 14.4663C8.44716 14.4886 8.22491 14.5 8 14.5C7.85803
|
|
|
+ 14.5 7.71712 14.4954 7.57741 14.4865C7.10001 13.5646 6.74754
|
|
|
+ 12.6476 6.49725 11.75H9.73591C9.48745 12.6411 9.13829 13.5512 8.66618
|
|
|
+ 14.4663ZM10.5459 13.9825C11.6619 13.507 12.6176 12.7283 13.3098
|
|
|
+ 11.75H11.2887C11.1051 12.4836 10.8609 13.2299 10.5459 13.9825ZM11.5858
|
|
|
+ 10.25H14.1C14.3587 9.5489 14.5 8.79095 14.5 8C14.5 7.20905 14.3587 6.4511
|
|
|
+ 14.1 5.75H11.5922C11.7855 7.11458 11.8224 8.63886 11.5858 10.25ZM10.0763
|
|
|
+ 5.75H6.15683C5.94754 7.09263 5.90154 8.62363 6.16683 10.25H10.0663C10.3316
|
|
|
+ 8.62363 10.2856 7.09263 10.0763 5.75ZM9.76021 4.25H6.47294C6.78297 3.09108
|
|
|
+ 7.1942 2.14973 7.56609 1.51425C7.7095 1.5048 7.85419 1.5 8 1.5C8.22937 1.5
|
|
|
+ 8.45596 1.51188 8.67919 1.53506C9.04787 2.17019 9.45355 3.10366 9.76021
|
|
|
+ 4.25ZM11.3063 4.25H13.3098C12.6268 3.28462 11.6871 2.5137 10.5902
|
|
|
+ 2.03658C10.8556 2.67393 11.1063 3.4192 11.3063 4.25ZM4.94441
|
|
|
+ 11.75C5.13712 12.5199 5.39657 13.3038 5.73452 14.0943C4.49822 13.6345
|
|
|
+ 3.43967 12.8093 2.69016 11.75H4.94441ZM4.64733 10.25C4.41071 8.63886
|
|
|
+ 4.44762 7.11458 4.64092 5.75H1.89996C1.64127 6.4511 1.5 7.20905 1.5 8C1.5 8.79095 1.64127 9.5489
|
|
|
+ 1.89996 10.25H4.64733ZM4.92683 4.25C5.13895 3.36886 5.40812 2.58393 5.69137 1.92192C4.47359 2.38472
|
|
|
+ 3.43094 3.203 2.69016 4.25H4.92683ZM16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0
|
|
|
+ 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8Z
|
|
|
</Path.Data>
|
|
|
</Path>
|
|
|
- <TextBlock x:Name="URLText" Width="52" TextWrapping="Wrap" FontSize="12" FontFamily="Segoe UI" LineHeight="16" TextAlignment="Center">Open web Page</TextBlock>
|
|
|
</StackPanel>
|
|
|
- </ToggleButton>
|
|
|
+ </RadioButton>
|
|
|
|
|
|
- <ToggleButton Name="LinkMailBtn" Width="72" Height="80" VerticalContentAlignment="Center" Tag="Mail" Background="Transparent" BorderThickness="0">
|
|
|
- <StackPanel Grid.Column="2">
|
|
|
- <Path Margin="8 8 8 8" Fill="#000000" HorizontalAlignment="Center">
|
|
|
+ <RadioButton
|
|
|
+ Name="LinkMailBtn"
|
|
|
+ Width="75"
|
|
|
+ Height="28"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
+ Background="Transparent"
|
|
|
+ Command="{Binding ToggleButtonTabCommand}"
|
|
|
+ GroupName="LinkTab"
|
|
|
+ IsChecked="False"
|
|
|
+ Style="{StaticResource PageViewRadioBtn}"
|
|
|
+ Tag="Mail">
|
|
|
+ <StackPanel>
|
|
|
+ <Path
|
|
|
+ Margin="8,8,8,8"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Fill="#252629">
|
|
|
<Path.Data>
|
|
|
- M16,2 L16,14 L0,14 L0,2 L16,2 Z M5.792,7.628 L1.533,13 L14.465,13 L10.203,7.631 L8,9.100925 L5.792,7.628 Z M15,4.434 L11.038,
|
|
|
- 7.075 L15,12.067 L15,4.434 Z M1,4.435 L1,12.064 L4.957,7.072 L1,4.435 Z M15,3 L1,3 L1,3.232 L8,7.898 L15,3.231 L15,3 Z
|
|
|
+ M1.5 2.27882V10.5H14.5V2.27882L8.43593 6.6103C8.17516 6.79657
|
|
|
+ 7.82484 6.79657 7.56407 6.6103L1.5 2.27882ZM13.0097
|
|
|
+ 1.5H2.99035L8 5.07832L13.0097 1.5ZM0 1C0 0.447715
|
|
|
+ 0.447715 0 1 0H15C15.5523 0 16 0.447715 16 1V11C16 11.5523 15.5523 12 15 12H1C0.447715 12 0 11.5523 0 11V1Z
|
|
|
</Path.Data>
|
|
|
</Path>
|
|
|
- <TextBlock x:Name="EmailText" TextWrapping="Wrap" FontSize="12" FontFamily="Segoe UI" LineHeight="16" TextAlignment="Center">Email</TextBlock>
|
|
|
</StackPanel>
|
|
|
- </ToggleButton>
|
|
|
-
|
|
|
+ </RadioButton>
|
|
|
</StackPanel>
|
|
|
- <Line Margin="0,4,0,0" Stroke="#1A000000" StrokeThickness="1" Width="232" HorizontalAlignment="Center" X1="0" X2="232" Y1="0" Y2="0"></Line>
|
|
|
- <Grid Height="100">
|
|
|
- <StackPanel Name="LinkPagePanel">
|
|
|
- <TextBlock x:Name="PageNumberText" Margin="12,12,0,4" FontSize="14" FontFamily="Segoe UI" LineHeight="20" Height="20">Control header</TextBlock>
|
|
|
+ <Line
|
|
|
+ Width="232"
|
|
|
+ Margin="0,4,0,0"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Stroke="#1A000000"
|
|
|
+ StrokeThickness="1"
|
|
|
+ X1="0"
|
|
|
+ X2="232"
|
|
|
+ Y1="0"
|
|
|
+ Y2="0" />
|
|
|
+ <Grid MinWidth="260">
|
|
|
+ <StackPanel Name="LinkPagePanel" Visibility="{Binding ElementName=LinkPageBtn, Path=IsChecked, Converter={StaticResource BoolToVisible}, Mode=OneWay}">
|
|
|
+ <TextBlock
|
|
|
+ x:Name="TxtPage"
|
|
|
+ Height="20"
|
|
|
+ Margin="16,12,0,4"
|
|
|
+ FontFamily="Segoe UI"
|
|
|
+ FontSize="12"
|
|
|
+ Foreground="#616469"
|
|
|
+ LineHeight="20"
|
|
|
+ Text="Page" />
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
<Grid>
|
|
|
- <TextBox Name="PageNumText" Margin="12,0,0,0" Width="199" Height="32" BorderBrush="#FFE2E3E6" Padding="12,0,0,0" Background="Gray" MaxLength="7"
|
|
|
- VerticalContentAlignment="Center" IsEnabled="False"></TextBox>
|
|
|
- <Button Tag="PageNumText" HorizontalAlignment="Right" Margin="0,8,8,8" VerticalAlignment="Center" Width="16" Height="16" Background="Transparent"
|
|
|
- >
|
|
|
- <Button.Content>
|
|
|
- <Path Fill="#333333">
|
|
|
- <Path.Data>
|
|
|
- M9.48528137,2.98528137 L9.48428137,8.48428137 L14.9852814,8.48528137 L14.9852814,9.48528137 L9.48428137,9.48428137 L9.48528137,14.9852814 L8.48528137,
|
|
|
- 14.9852814 L8.48428137,9.48428137 L2.98528137,9.48528137 L2.98528137,8.48528137 L8.48428137,8.48428137 L8.48528137,2.98528137 L9.48528137,2.98528137 Z
|
|
|
- </Path.Data>
|
|
|
- <Path.RenderTransform>
|
|
|
- <TransformGroup>
|
|
|
- <TranslateTransform X="-8"/>
|
|
|
- <RotateTransform Angle="45"/>
|
|
|
- <TranslateTransform X="13"/>
|
|
|
- </TransformGroup>
|
|
|
- </Path.RenderTransform>
|
|
|
- </Path>
|
|
|
- </Button.Content>
|
|
|
- </Button>
|
|
|
+ <!--<CustomControl:TextBoxEx
|
|
|
+ x:Name="PageNumText"
|
|
|
+ Width="228"
|
|
|
+ Height="32"
|
|
|
+ Margin="16,0"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
+ IsEnabled="False"
|
|
|
+ PlaceholderText="Enter target page">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="TextChanged">
|
|
|
+ <i:InvokeCommandAction Command="{Binding PageNumTextChangedCommand}" PassEventArgsToCommand="True" />
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </CustomControl:TextBoxEx>-->
|
|
|
+ <CustomControl:TextBoxWithTip
|
|
|
+ x:Name="PageNumText"
|
|
|
+ Width="228"
|
|
|
+ Margin="16,0"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
+ IsEnabled="False"
|
|
|
+ ShowTip="Collapsed"
|
|
|
+ Text="Enter target page"
|
|
|
+ TipText=" Page number error.">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="TextChanged">
|
|
|
+ <i:InvokeCommandAction Command="{Binding PageNumTextChangedCommand}" PassEventArgsToCommand="True" />
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </CustomControl:TextBoxWithTip>
|
|
|
+ <!--<Border
|
|
|
+ Name="BorderPageNumText"
|
|
|
+ Width="228"
|
|
|
+ Height="32"
|
|
|
+ Margin="16,0"
|
|
|
+ Background="LightGray"
|
|
|
+ BorderBrush="#1770F4"
|
|
|
+ BorderThickness="1"
|
|
|
+ CornerRadius="4">
|
|
|
+ <TextBox
|
|
|
+ Name="PageNumText"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
+ Background="Transparent"
|
|
|
+ BorderThickness="0"
|
|
|
+ IsEnabled="False">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="TextChanged">
|
|
|
+ <i:InvokeCommandAction Command="{Binding PageNumTextChangedCommand}" PassEventArgsToCommand="True" />
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </TextBox>
|
|
|
+ </Border>
|
|
|
+ <TextBlock
|
|
|
+ x:Name="defaultPageNumText"
|
|
|
+ Margin="25,0,0,0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontSize="14"
|
|
|
+ Foreground="Gray"
|
|
|
+ IsHitTestVisible="False"
|
|
|
+ Visibility="{Binding ElementName=PageNumText, Path=Text, Converter={StaticResource StringToUnVisibleConvert}, Mode=OneWay}">
|
|
|
+ Enter target page
|
|
|
+ </TextBlock>
|
|
|
+ <Button
|
|
|
+ Width="18"
|
|
|
+ Height="18"
|
|
|
+ Margin="0,0,18,0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Background="Transparent"
|
|
|
+ Tag="PageNumText"
|
|
|
+ Visibility="{Binding ElementName=PageNumText, Path=Text, Converter={StaticResource StringToVisibleConvert}}">
|
|
|
+ <Button.Content>
|
|
|
+ <Path Fill="#333333">
|
|
|
+ <Path.Data>
|
|
|
+ M9.48528137,2.98528137 L9.48428137,8.48428137 L14.9852814,8.48528137 L14.9852814,9.48528137 L9.48428137,9.48428137 L9.48528137,14.9852814 L8.48528137,
|
|
|
+ 14.9852814 L8.48428137,9.48428137 L2.98528137,9.48528137 L2.98528137,8.48528137 L8.48428137,8.48428137 L8.48528137,2.98528137 L9.48528137,2.98528137 Z
|
|
|
+ </Path.Data>
|
|
|
+ <Path.RenderTransform>
|
|
|
+ <TransformGroup>
|
|
|
+ <TranslateTransform X="-8" />
|
|
|
+ <RotateTransform Angle="45" />
|
|
|
+ <TranslateTransform X="13" />
|
|
|
+ </TransformGroup>
|
|
|
+ </Path.RenderTransform>
|
|
|
+ </Path>
|
|
|
+ </Button.Content>
|
|
|
+ </Button>-->
|
|
|
</Grid>
|
|
|
|
|
|
- <TextBlock Name="PageNumBlock" Margin="8,0,0,0" Height="20" FontSize="14" FontFamily="Segoe UI" LineHeight="20" TextAlignment="Center" VerticalAlignment="Center"></TextBlock>
|
|
|
+ <!--<TextBlock
|
|
|
+ Name="PageNumBlock"
|
|
|
+ Height="20"
|
|
|
+ Margin="8,0,0,0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontFamily="Segoe UI"
|
|
|
+ FontSize="14"
|
|
|
+ LineHeight="20"
|
|
|
+ TextAlignment="Center" />-->
|
|
|
</StackPanel>
|
|
|
- <TextBlock Name="ErrorNumTips" Foreground="Red" Margin="12,0,0,0" Visibility="Collapsed">Page number error.</TextBlock>
|
|
|
- <TextBlock Name="ErrorRangeTips" Foreground="Red" Margin="12,0,0,0" Visibility="Collapsed">Page number out of range.</TextBlock>
|
|
|
+ <!--<TextBlock
|
|
|
+ Name="ErrorNumTips"
|
|
|
+ Margin="12,0,0,0"
|
|
|
+ Foreground="Red"
|
|
|
+ Visibility="{Binding ErrorNumTipsVisibility}">
|
|
|
+ Page number error.
|
|
|
+ </TextBlock>
|
|
|
+ <TextBlock
|
|
|
+ Name="ErrorRangeTips"
|
|
|
+ Margin="12,0,0,0"
|
|
|
+ Foreground="Red"
|
|
|
+ Visibility="{Binding ErrorRangeTipsVisibility}">
|
|
|
+ Page number out of range.
|
|
|
+ </TextBlock>-->
|
|
|
+ <Button
|
|
|
+ Name="BtnLocation"
|
|
|
+ Width="228"
|
|
|
+ Height="32"
|
|
|
+ Margin="16,16,16,0"
|
|
|
+ IsEnabled="False"
|
|
|
+ Style="{StaticResource Btn.cta}">
|
|
|
+ <Button.Content>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Path
|
|
|
+ Name="PathLocation"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Data="M15.064 6.88052L13.5661 6.49468L9.57748 11.6857L10.2156 13.8898C10.3593 14.3863 9.74722 14.7479 9.38174 14.3824L6.59721 11.5979L0.0145727 15.9711L4.38786 9.38851L1.60356 6.60421C1.23807 6.23873 1.59967 5.62665 2.09615 5.77038L4.30107 6.40871L9.49166 2.42039L9.10576 0.92227C8.97879 0.42937 9.58359 0.0840825 9.9435 0.443993L15.5423 6.04277C15.9022 6.40268 15.5569 7.00748 15.064 6.88052Z"
|
|
|
+ Fill="White" />
|
|
|
+ <TextBlock Margin="10,0" Text="Locate the target page" />
|
|
|
+ </StackPanel>
|
|
|
+ </Button.Content>
|
|
|
+ </Button>
|
|
|
+ <Image
|
|
|
+ Name="ImagePreview"
|
|
|
+ Width="196"
|
|
|
+ Height="254"
|
|
|
+ Margin="32"
|
|
|
+ Source="{Binding PreviewImage}"
|
|
|
+ Visibility="{Binding ImagePreviewVisibility}" />
|
|
|
</StackPanel>
|
|
|
- <StackPanel Name="LinkWebPanel" Visibility="Collapsed">
|
|
|
- <TextBlock Margin="12,12,0,4" FontSize="14" FontFamily="Segoe UI" LineHeight="20" Height="20">URL</TextBlock>
|
|
|
+ <StackPanel Name="LinkWebPanel" Visibility="{Binding ElementName=LinkWebBtn, Path=IsChecked, Converter={StaticResource BoolToVisible}, Mode=OneWay}">
|
|
|
+ <TextBlock
|
|
|
+ Height="20"
|
|
|
+ Margin="16,12,0,4"
|
|
|
+ FontFamily="Segoe UI"
|
|
|
+ FontSize="12"
|
|
|
+ Foreground="#616469"
|
|
|
+ LineHeight="20"
|
|
|
+ Text="URL" />
|
|
|
<Grid>
|
|
|
- <TextBox Name="PageWebText" Margin="12,0,12,0" Width="232" Height="32" BorderBrush="#FFE2E3E6" HorizontalAlignment="Left" Padding="12,0,25,0" VerticalContentAlignment="Center"
|
|
|
- IsEnabled="False" Background="Gray"></TextBox>
|
|
|
- <TextBlock x:Name="defaultPageWebText" IsHitTestVisible="False" Margin="25,0,0,0" VerticalAlignment="Center" Foreground="Gray" FontSize="14"
|
|
|
-
|
|
|
- >https://www.pdfreaderpro.com</TextBlock>
|
|
|
- <Button Tag="PageWebText" HorizontalAlignment="Right" Margin="0,8,18,8" VerticalAlignment="Center" Width="16" Height="16" Background="Transparent"
|
|
|
- >
|
|
|
+ <Border
|
|
|
+ Name="BorderPageWebText"
|
|
|
+ Width="228"
|
|
|
+ Height="32"
|
|
|
+ Margin="16,0"
|
|
|
+ Background="#FFFFFF"
|
|
|
+ BorderBrush="#1770F4"
|
|
|
+ BorderThickness="1"
|
|
|
+ CornerRadius="4">
|
|
|
+ <TextBox
|
|
|
+ Name="PageWebText"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
+ Background="Transparent"
|
|
|
+ BorderThickness="0"
|
|
|
+ IsEnabled="True" />
|
|
|
+ </Border>
|
|
|
+ <TextBlock
|
|
|
+ x:Name="defaultPageWebText"
|
|
|
+ Margin="25,0,0,0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontSize="14"
|
|
|
+ Foreground="Gray"
|
|
|
+ IsHitTestVisible="False"
|
|
|
+ Visibility="{Binding ElementName=PageWebText, Path=Text, Converter={StaticResource StringToUnVisibleConvert}, Mode=OneWay}">
|
|
|
+ https://www.pdfreaderpro.com
|
|
|
+ </TextBlock>
|
|
|
+ <Button
|
|
|
+ Width="18"
|
|
|
+ Height="18"
|
|
|
+ Margin="0,0,18,0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Background="Transparent"
|
|
|
+ Tag="PageWebText"
|
|
|
+ Visibility="{Binding ElementName=PageWebText, Path=Text, Converter={StaticResource StringToVisibleConvert}}">
|
|
|
<Button.Content>
|
|
|
<Path Fill="#333333">
|
|
|
<Path.Data>
|
|
|
M9.48528137,2.98528137 L9.48428137,8.48428137 L14.9852814,8.48528137 L14.9852814,9.48528137 L9.48428137,9.48428137 L9.48528137,14.9852814 L8.48528137,
|
|
|
- 14.9852814 L8.48428137,9.48428137 L2.98528137,9.48528137 L2.98528137,8.48528137 L8.48428137,8.48428137 L8.48528137,2.98528137 L9.48528137,2.98528137 Z
|
|
|
+ 14.9852814 L8.48428137,9.48428137 L2.98528137,9.48528137 L2.98528137,8.48528137 L8.48428137,8.48428137 L8.48528137,2.98528137 L9.48528137,2.98528137 Z
|
|
|
</Path.Data>
|
|
|
<Path.RenderTransform>
|
|
|
<TransformGroup>
|
|
|
- <TranslateTransform X="-8"/>
|
|
|
- <RotateTransform Angle="45"/>
|
|
|
- <TranslateTransform X="13"/>
|
|
|
+ <TranslateTransform X="-8" />
|
|
|
+ <RotateTransform Angle="45" />
|
|
|
+ <TranslateTransform X="13" />
|
|
|
</TransformGroup>
|
|
|
</Path.RenderTransform>
|
|
|
</Path>
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</Grid>
|
|
|
- <TextBlock Name="ErrorUrlTips" Foreground="Red" Margin="12,0,0,0" Visibility="Collapsed">Invalid link.</TextBlock>
|
|
|
+ <TextBlock
|
|
|
+ Name="ErrorUrlTips"
|
|
|
+ Margin="12,0,0,0"
|
|
|
+ Foreground="Red"
|
|
|
+ Visibility="Collapsed">
|
|
|
+ Invalid link.
|
|
|
+ </TextBlock>
|
|
|
</StackPanel>
|
|
|
- <StackPanel Name="LinkMailPanel" Visibility="Collapsed">
|
|
|
- <TextBlock Margin="12,12,0,4" FontSize="14" FontFamily="Segoe UI" LineHeight="20" Height="20">Email</TextBlock>
|
|
|
+ <StackPanel Name="LinkMailPanel" Visibility="{Binding ElementName=LinkMailBtn, Path=IsChecked, Converter={StaticResource BoolToVisible}, Mode=OneWay}">
|
|
|
+ <TextBlock
|
|
|
+ Height="20"
|
|
|
+ Margin="12,12,0,4"
|
|
|
+ FontFamily="Segoe UI"
|
|
|
+ FontSize="14"
|
|
|
+ LineHeight="20">
|
|
|
+ Email
|
|
|
+ </TextBlock>
|
|
|
<Grid>
|
|
|
- <TextBox Name="PageMailText" Margin="12,0,12,0" Width="232" Height="32" BorderBrush="#FFE2E3E6" HorizontalAlignment="Left" Background="Gray"
|
|
|
- Padding="12,0,0,0" VerticalContentAlignment="Center" IsEnabled="False"></TextBox>
|
|
|
- <TextBlock x:Name="defaultPageMailText" IsHitTestVisible="False" Margin="25,0,0,0" VerticalAlignment="Center" Foreground="Gray" FontSize="14"
|
|
|
-
|
|
|
- >support@pdfreaderpro.com</TextBlock>
|
|
|
- <Button Tag="PageMailText" HorizontalAlignment="Right" Margin="0,8,18,8" VerticalAlignment="Center" Width="16" Height="16" Background="Transparent"
|
|
|
- >
|
|
|
+ <Border
|
|
|
+ Name="BorderPageMailText"
|
|
|
+ Width="228"
|
|
|
+ Height="32"
|
|
|
+ Margin="16,0"
|
|
|
+ Background="#FFFFFF"
|
|
|
+ BorderBrush="#1770F4"
|
|
|
+ BorderThickness="1"
|
|
|
+ CornerRadius="4">
|
|
|
+ <TextBox
|
|
|
+ Name="PageMailText"
|
|
|
+ Width="232"
|
|
|
+ Height="32"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ VerticalContentAlignment="Center"
|
|
|
+ Background="Transparent"
|
|
|
+ BorderBrush="Transparent"
|
|
|
+ IsEnabled="False" />
|
|
|
+ </Border>
|
|
|
+ <TextBlock
|
|
|
+ x:Name="defaultPageMailText"
|
|
|
+ Margin="25,0,0,0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontSize="14"
|
|
|
+ Foreground="Gray"
|
|
|
+ IsHitTestVisible="False"
|
|
|
+ Visibility="{Binding ElementName=PageMailText, Path=Text, Converter={StaticResource StringToUnVisibleConvert}, Mode=OneWay}">
|
|
|
+ support@pdfreaderpro.com
|
|
|
+ </TextBlock>
|
|
|
+ <Button
|
|
|
+ Width="18"
|
|
|
+ Height="18"
|
|
|
+ Margin="0,0,18,0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Background="Transparent"
|
|
|
+ Tag="PageMailText"
|
|
|
+ Visibility="{Binding ElementName=PageMailText, Path=Text, Converter={StaticResource StringToVisibleConvert}}">
|
|
|
<Button.Content>
|
|
|
<Path Fill="#333333">
|
|
|
<Path.Data>
|
|
|
M9.48528137,2.98528137 L9.48428137,8.48428137 L14.9852814,8.48528137 L14.9852814,9.48528137 L9.48428137,9.48428137 L9.48528137,14.9852814 L8.48528137,
|
|
|
- 14.9852814 L8.48428137,9.48428137 L2.98528137,9.48528137 L2.98528137,8.48528137 L8.48428137,8.48428137 L8.48528137,2.98528137 L9.48528137,2.98528137 Z
|
|
|
+ 14.9852814 L8.48428137,9.48428137 L2.98528137,9.48528137 L2.98528137,8.48528137 L8.48428137,8.48428137 L8.48528137,2.98528137 L9.48528137,2.98528137 Z
|
|
|
</Path.Data>
|
|
|
<Path.RenderTransform>
|
|
|
<TransformGroup>
|
|
|
- <TranslateTransform X="-8"/>
|
|
|
- <RotateTransform Angle="45"/>
|
|
|
- <TranslateTransform X="13"/>
|
|
|
+ <TranslateTransform X="-8" />
|
|
|
+ <RotateTransform Angle="45" />
|
|
|
+ <TranslateTransform X="13" />
|
|
|
</TransformGroup>
|
|
|
</Path.RenderTransform>
|
|
|
</Path>
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</Grid>
|
|
|
- <TextBlock Name="ErrorMailTips" Foreground="Red" Margin="12,0,0,0" TextWrapping="Wrap" Visibility="Collapsed">The email is invalid.Please enter a valid email address.</TextBlock>
|
|
|
+ <TextBlock
|
|
|
+ Name="ErrorMailTips"
|
|
|
+ Margin="12,0,0,0"
|
|
|
+ Foreground="Red"
|
|
|
+ TextWrapping="Wrap"
|
|
|
+ Visibility="Collapsed">
|
|
|
+ The email is invalid.Please enter a valid email address.
|
|
|
+ </TextBlock>
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
- <Button Name="SaveBtn" Width="120" Height="32" Tag="go" FontSize="16" Foreground="White" BorderThickness="0" Background="#273C62" IsEnabled="False">
|
|
|
- <!--<TextBlock x:Name="GoText" Foreground="White">Go</TextBlock>-->
|
|
|
- </Button>
|
|
|
+ <Button
|
|
|
+ x:Name="BtnGOorBack"
|
|
|
+ Background="Transparent"
|
|
|
+ BorderThickness="0"
|
|
|
+ Content="GO"
|
|
|
+ FontSize="16"
|
|
|
+ Foreground="#1770F4"
|
|
|
+ Style="{StaticResource Btn.cta}"
|
|
|
+ Visibility="{Binding BtnGOorBackVisibility}" />
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
-</UserControl>
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Loaded">
|
|
|
+ <helper:AdvancedInvokeCommandAction
|
|
|
+ Command="{Binding LoadedCommand}"
|
|
|
+ CommandParameter="{Binding ElementName=LinkAnnotPropertyContent}"
|
|
|
+ PassEventArgsToCommand="True">
|
|
|
+ <!--<helper:AdvancedInvokeCommandAction.CommandParameter>
|
|
|
+ <MultiBinding Converter="{StaticResource ResourceKey=ObjectConvert}" Mode="TwoWay">
|
|
|
+ <MultiBinding.Bindings>
|
|
|
+ <Binding ElementName="ImagePreview" />
|
|
|
+ <Binding ElementName="LinkPagePanel" />
|
|
|
+ <Binding ElementName="LinkWebPanel" />
|
|
|
+ <Binding ElementName="LinkMailPanel" />
|
|
|
+ <Binding ElementName="LinkPagePanel" />
|
|
|
+ <Binding ElementName="LinkPagePanel" />
|
|
|
+ <Binding ElementName="LinkPagePanel" />
|
|
|
+ </MultiBinding.Bindings>
|
|
|
+ </MultiBinding>
|
|
|
+ </helper:AdvancedInvokeCommandAction.CommandParameter>-->
|
|
|
+ </helper:AdvancedInvokeCommandAction>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+</UserControl>
|