|
@@ -1,14 +1,17 @@
|
|
|
-<UserControl x:Class="Compdfkit_Tools.PDFControlUI.CPDFAnnoationListUI"
|
|
|
+<UserControl x:Class="Compdfkit_Tools.PDFControlUI.CPDFAnnotationListUI"
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
xmlns:cpdfcommon="clr-namespace:Compdfkit_Tools.Common"
|
|
|
+ xmlns:pdfControlUi="clr-namespace:Compdfkit_Tools.PDFControlUI"
|
|
|
+ xmlns:compdfkitTools="clr-namespace:Compdfkit_Tools"
|
|
|
mc:Ignorable="d"
|
|
|
d:DesignHeight="800" d:DesignWidth="300">
|
|
|
<UserControl.Resources>
|
|
|
<cpdfcommon:AnnotArgsTypeToVisibilityConverter x:Key="AnnotArgsTypeToVisibilityConverter"></cpdfcommon:AnnotArgsTypeToVisibilityConverter>
|
|
|
<cpdfcommon:BotaResourceConverter x:Key="BotaResourceConverter"></cpdfcommon:BotaResourceConverter>
|
|
|
+ <pdfControlUi:SubtractionConverter x:Key="SubtractionConverter"/>
|
|
|
</UserControl.Resources>
|
|
|
<Grid>
|
|
|
<ListView Name="AnnotationList" SelectionChanged="AnnotationListControl_SelectionChanged" VirtualizingPanel.IsVirtualizingWhenGrouping="True"
|
|
@@ -41,21 +44,25 @@
|
|
|
|
|
|
<ListView.ItemsPanel>
|
|
|
<ItemsPanelTemplate>
|
|
|
- <VirtualizingStackPanel Background="#FAFCFF" Margin="-5,0,0,0"></VirtualizingStackPanel>
|
|
|
+ <VirtualizingStackPanel Background="#FAFCFF" Margin="-5,0,5,0" HorizontalAlignment="Stretch"
|
|
|
+ Width="{Binding ActualWidth, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListView}, Converter={StaticResource SubtractionConverter}, ConverterParameter=5}"></VirtualizingStackPanel>
|
|
|
</ItemsPanelTemplate>
|
|
|
</ListView.ItemsPanel>
|
|
|
|
|
|
<ListView.ItemTemplate>
|
|
|
<ItemContainerTemplate>
|
|
|
- <Grid Height="auto">
|
|
|
+ <Grid Margin="0,0,5,5">
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition></RowDefinition>
|
|
|
- <RowDefinition Height="auto"></RowDefinition>
|
|
|
+ <RowDefinition Height="Auto"></RowDefinition>
|
|
|
+ <RowDefinition Height="Auto"></RowDefinition>
|
|
|
+ <RowDefinition Height="Auto"></RowDefinition>
|
|
|
+ <RowDefinition Height="Auto"></RowDefinition>
|
|
|
</Grid.RowDefinitions>
|
|
|
<Grid Grid.Row="0" Name="AnnotGrid">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="20"></ColumnDefinition>
|
|
|
- <ColumnDefinition></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
</Grid.ColumnDefinitions>
|
|
|
<Canvas Height="16" Width="20">
|
|
|
<Grid x:Name="HighlightGrid" Visibility="{Binding BindProperty.CurrentAnnotationType, Converter={StaticResource AnnotArgsTypeToVisibilityConverter}, ConverterParameter = C_ANNOTATION_HIGHLIGHT}">
|
|
@@ -127,9 +134,58 @@
|
|
|
<Path Data="M1.37111 7.6963L10 1.42705L18.6289 7.6963L15.3329 17.8402H4.66705L1.37111 7.6963Z" Stroke="#43474D"></Path>
|
|
|
</Grid>
|
|
|
</Canvas>
|
|
|
- <TextBlock Text="{Binding BindProperty.CreateDate}" Grid.Column="1" Margin="10,0,0,0"></TextBlock>
|
|
|
+ <Grid Grid.Column="1" Margin="10,0,10,0">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="20"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <StackPanel>
|
|
|
+ <TextBlock Text="{Binding BindProperty.Author}"></TextBlock>
|
|
|
+ <TextBlock Text="{Binding BindProperty.CreateDate}" ></TextBlock>
|
|
|
+ </StackPanel>
|
|
|
+ <CheckBox Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
+ <CheckBox.Style>
|
|
|
+ <Style TargetType="CheckBox">
|
|
|
+ <Style.Triggers>
|
|
|
+ <Trigger Property="IsChecked" Value="True">
|
|
|
+ <Setter Property="ToolTip" Value="Marked"/>
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsChecked" Value="False">
|
|
|
+ <Setter Property="ToolTip" Value="UnMarked"/>
|
|
|
+ </Trigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ </Style>
|
|
|
+ </CheckBox.Style>
|
|
|
+ </CheckBox>
|
|
|
+ </Grid>
|
|
|
</Grid>
|
|
|
<TextBox Text="{Binding BindProperty.Note, Mode=OneWay}" Grid.Row="1" TextWrapping="Wrap" AcceptsReturn="True" IsHitTestVisible="False" Background="Transparent" BorderThickness="0" Width="{Binding ElementName=AnnotationList,Path=ActualWidth}" Padding="16,6,16,6" FontFamily="Microsoft YaHei" FontSize="14px"></TextBox>
|
|
|
+ <pdfControlUi:AnnotationReplyListControl x:Name="ReplyListControl" Grid.Row="2" ReplyListSource="{Binding BindProperty.ReplyList}"></pdfControlUi:AnnotationReplyListControl>
|
|
|
+ <Grid Grid.Row="3">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="50"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <pdfControlUi:ReplyStatusControl Grid.Column="0"></pdfControlUi:ReplyStatusControl>
|
|
|
+ <StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
|
+ <Button Width="40" Height="20" Background="Transparent" BorderThickness="0" Command="{Binding DataContext.CallReplyListMethodCommand, RelativeSource={RelativeSource AncestorType={x:Type ListView}}}">
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Path Data="M16 12.3333C16 12.7017 15.8537 13.055 15.5932 13.3154C15.3327 13.5759 14.9795 13.7222 14.6111 13.7222H6.27778L3.5 16.5V5.38889C3.5 5.02053 3.64633 4.66726 3.9068 4.4068C4.16726 4.14633 4.52053 4 4.88889 4H14.6111C14.9795 4 15.3327 4.14633 15.5932 4.4068C15.8537 4.66726 16 5.02053 16 5.38889V12.3333Z"
|
|
|
+ Stroke="#43474D" StrokeThickness="1.25" StrokeEndLineCap="Round" StrokeLineJoin="Round"/>
|
|
|
+ <TextBlock Text="4" VerticalAlignment="Bottom" Margin="5,0,0,0"/>
|
|
|
+ </StackPanel>
|
|
|
+ </Button>
|
|
|
+
|
|
|
+ <Button Width="20" Height="20" Background="Transparent" BorderThickness="0" Margin="10,0,10,0">
|
|
|
+ <Canvas Width="20" Height="20">
|
|
|
+ <Path Data="M7.95833 8.75L4 12.7083L7.95833 16.6667"
|
|
|
+ Stroke="#43474D" StrokeThickness="1.5" StrokeEndLineCap="Round" StrokeLineJoin="Round"/>
|
|
|
+ <Path Data="M16.6666 4V9.54166C16.6666 10.3815 16.333 11.187 15.7392 11.7808C15.1453 12.3747 14.3398 12.7083 13.5 12.7083H4"
|
|
|
+ Stroke="#43474D" StrokeThickness="1.5" StrokeEndLineCap="Round" StrokeLineJoin="Round"/>
|
|
|
+ </Canvas>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
</Grid>
|
|
|
</ItemContainerTemplate>
|
|
|
</ListView.ItemTemplate>
|