|
@@ -4,11 +4,18 @@
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:local="clr-namespace:compdfkit_tools.PDFControlUI"
|
|
|
+ xmlns:common="clr-namespace:compdfkit_tools.Common"
|
|
|
mc:Ignorable="d"
|
|
|
- d:DesignHeight="450" d:DesignWidth="800">
|
|
|
+ d:DesignHeight="450" d:DesignWidth="800" Background="#FAFCFF">
|
|
|
<UserControl.Resources>
|
|
|
<ResourceDictionary>
|
|
|
<local:BoolEnableConvert x:Key="BoolEnableCovert"/>
|
|
|
+ <common:TextLengthToVisibilityConvert x:Key="TextLengthToVisibilityConvert"/>
|
|
|
+ <common:InvertTextLengthToVisibilityConvert x:Key="InvertTextLengthToVisibilityConvert"/>
|
|
|
+ <common:TextLengthToBoolConvert x:Key="TextLengthToBoolConvert"/>
|
|
|
+ <ResourceDictionary.MergedDictionaries>
|
|
|
+ <ResourceDictionary Source="pack://application:,,,/compdfkit-assets;component/Styles/ButtonStyle.xaml"></ResourceDictionary>
|
|
|
+ </ResourceDictionary.MergedDictionaries>
|
|
|
</ResourceDictionary>
|
|
|
</UserControl.Resources>
|
|
|
<Grid>
|
|
@@ -16,44 +23,61 @@
|
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
|
</Grid.RowDefinitions>
|
|
|
-
|
|
|
- <Grid>
|
|
|
- <Border CornerRadius="20" BorderThickness="0" Width="140" Height="35" Background="#E6E6E6" ClipToBounds="True"
|
|
|
- HorizontalAlignment="Right" Margin="0,0,10,0" MouseLeftButtonDown="Border_MouseLeftButtonDown">
|
|
|
- <Grid>
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
- <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <Viewbox Width="25" HorizontalAlignment="Right" Margin="0,0,10,0">
|
|
|
- <Path Fill="#8A8A8A" >
|
|
|
- <Path.Data>
|
|
|
- M13.5 7.99997C13.5 11.0375 11.0376 13.5 8 13.5C4.96243 13.5 2.5 11.0375 2.5 7.99997C2.5 4.9624 4.96243
|
|
|
- 2.49997 8 2.49997C11.0376 2.49997 13.5 4.9624 13.5 7.99997ZM15 7.99997C15 11.866 11.866 15 8 15C4.13401
|
|
|
- 15 1 11.866 1 7.99997C1 4.13398 4.13401 0.999969 8 0.999969C11.866 0.999969 15 4.13398 15 7.99997ZM7.25005
|
|
|
- 4.8V7.25H4.80005V8.75H7.25005V11.2H8.75005V8.75H11.2V7.25H8.75005V4.8H7.25005Z
|
|
|
- </Path.Data>
|
|
|
- </Path>
|
|
|
- </Viewbox>
|
|
|
|
|
|
- <TextBlock Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0">Add Bookmark</TextBlock>
|
|
|
- </Grid>
|
|
|
- </Border>
|
|
|
- </Grid>
|
|
|
+ <Border Height="36">
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <TextBlock Foreground="#43474D" FontSize="14" Margin="16,0,0,0" VerticalAlignment="Center" FontWeight="SemiBold">Bookmark</TextBlock>
|
|
|
|
|
|
- <Border Name="BookmarkInputPanel" Grid.Row="1" CornerRadius="5" Background="#E2E3E6" Padding="5" Margin="0,5,0,0" Visibility="Collapsed">
|
|
|
+ <Border Grid.Column="1" Width="16" Height="16" Background="#01000000" HorizontalAlignment="Right" Margin="0,0,16,0" VerticalAlignment="Center"
|
|
|
+ MouseLeftButtonDown="Border_MouseLeftButtonDown">
|
|
|
+ <Path Fill="#43474D">
|
|
|
+ <Path.Data>
|
|
|
+ M8.5 7.5V3H7.5V7.5H3V8.5H7.5V13H8.5V8.5H13V7.5H8.5Z
|
|
|
+ </Path.Data>
|
|
|
+ </Path>
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+
|
|
|
+ <Border Name="BookmarkInputPanel" Grid.Row="1" Background="#DDE9FF" Height="108" Margin="0,5,0,0" Padding="16,0,16,0" Visibility="Collapsed">
|
|
|
<Grid >
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
|
<RowDefinition Height="auto"></RowDefinition>
|
|
|
</Grid.RowDefinitions>
|
|
|
- <TextBlock Name="PageNumText"></TextBlock>
|
|
|
- <TextBox Name="BookmarkText" Grid.Row="1" Height="30" VerticalContentAlignment="Center"></TextBox>
|
|
|
+
|
|
|
+ <Border Height="28">
|
|
|
+ <TextBlock Name="PageNumText" VerticalAlignment="Center"></TextBlock>
|
|
|
+ </Border>
|
|
|
+
|
|
|
+ <Grid Grid.Row="1">
|
|
|
+ <TextBox Name="BookmarkText" VerticalContentAlignment="Center" Height="30" Padding="5,0,30,0"></TextBox>
|
|
|
+ <TextBlock VerticalAlignment="Center" IsHitTestVisible="False" Margin="10,0,0,0" Foreground="#999999"
|
|
|
+ Visibility="{Binding ElementName=BookmarkText,Path=Text,Converter={StaticResource TextLengthToVisibilityConvert}}">Bookmark Title</TextBlock>
|
|
|
+
|
|
|
+ <Border Visibility="{Binding ElementName=BookmarkText,Path=Text,Converter={StaticResource InvertTextLengthToVisibilityConvert}}"
|
|
|
+ HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,10,0"
|
|
|
+ Background="#01000000">
|
|
|
+ <Path Fill="Black" IsHitTestVisible="False">
|
|
|
+ <Path.Data>
|
|
|
+ M12.5762 3.95117L8.5332 8L12.5762 12.0488L12.0488 12.5762L8 8.5332L3.95117 12.5762L3.42383
|
|
|
+ 12.0488L7.4668 8L3.42383 3.95117L3.95117 3.42383L8 7.4668L12.0488 3.42383L12.5762 3.95117Z
|
|
|
+ </Path.Data>
|
|
|
+ </Path>
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
<StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right" Margin="0,10,0,0">
|
|
|
- <Button Padding="5" Width="60" Click="ButtonCancel_Click">Cancel</Button>
|
|
|
- <Button Margin="10,0,0,0" Padding="5" Width="60" Click="ButtonAdd_Click"
|
|
|
- IsEnabled="{Binding ElementName=BookmarkText,Path=Text,Converter={StaticResource BoolEnableCovert}}">Add</Button>
|
|
|
+ <Border Width="56" Height="30" Background="#01000000" MouseLeftButtonDown="ButtonCancel_Click">
|
|
|
+ <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="14" Foreground="#1460F3">Cancel</TextBlock>
|
|
|
+ </Border>
|
|
|
+
|
|
|
+ <Button Style="{StaticResource ButtonStyle}" Margin="10,0,0,0" Width="56" Height="30" Click="ButtonAdd_Click">Save</Button>
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
</Border>
|