|
@@ -1,33 +1,42 @@
|
|
|
-<annotview:StickyPopupExt x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.StickyNotePopup"
|
|
|
- xmlns:annotview="clr-namespace:ComPDFKitViewer;assembly=ComPDFKit.Viewer"
|
|
|
- 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"
|
|
|
- mc:Ignorable="d" Background="Transparent"
|
|
|
- d:DesignHeight="450" d:DesignWidth="800">
|
|
|
+<annotview:StickyPopupExt
|
|
|
+ x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.StickyNotePopup"
|
|
|
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
+ xmlns:annotview="clr-namespace:ComPDFKitViewer;assembly=ComPDFKit.Viewer"
|
|
|
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
+ xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
|
|
|
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
+ xmlns:prism="http://prismlibrary.com/"
|
|
|
+ xmlns:viewmodels="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
|
|
|
+ d:DataContext="{d:DesignInstance Type=viewmodels:StickyNotePopupViewModel}"
|
|
|
+ d:DesignHeight="450"
|
|
|
+ d:DesignWidth="800"
|
|
|
+ prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
+ Background="Transparent"
|
|
|
+ mc:Ignorable="d">
|
|
|
<annotview:StickyPopupExt.Resources>
|
|
|
<DataTemplate x:Key="listboxData">
|
|
|
- <Ellipse Stroke="{StaticResource color.sys.layout.divider}"
|
|
|
- StrokeThickness="1"
|
|
|
- Width="20"
|
|
|
- Height="20"
|
|
|
- Fill="{Binding Color}" />
|
|
|
+ <Ellipse
|
|
|
+ Width="20"
|
|
|
+ Height="20"
|
|
|
+ Fill="{Binding Color}"
|
|
|
+ Stroke="{StaticResource color.sys.layout.divider}"
|
|
|
+ StrokeThickness="1" />
|
|
|
</DataTemplate>
|
|
|
|
|
|
<Style x:Key="listboxItemStyle" TargetType="{x:Type ListBoxItem}">
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
- <Setter Property="Height" Value="32"/>
|
|
|
- <Setter Property="Width" Value="32"/>
|
|
|
+ <Setter Property="Height" Value="32" />
|
|
|
+ <Setter Property="Width" Value="32" />
|
|
|
<Setter Property="Margin" Value="2,0,2,0" />
|
|
|
<Setter Property="Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="{x:Type ContentControl}">
|
|
|
- <Border CornerRadius="4"
|
|
|
- x:Name="border"
|
|
|
- Padding="0,0"
|
|
|
- Background="{TemplateBinding Background}">
|
|
|
+ <Border
|
|
|
+ x:Name="border"
|
|
|
+ Padding="0,0"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ CornerRadius="4">
|
|
|
<ContentPresenter />
|
|
|
</Border>
|
|
|
</ControlTemplate>
|
|
@@ -45,55 +54,111 @@
|
|
|
<Setter Property="Background" Value="#e2e3e5" />
|
|
|
</Trigger>
|
|
|
</Style.Triggers>
|
|
|
-
|
|
|
</Style>
|
|
|
</annotview:StickyPopupExt.Resources>
|
|
|
<Grid MouseLeftButtonDown="Grid_MouseLeftButtonDown">
|
|
|
- <Border x:Name="border" Background="{StaticResource color.sys.layout.anti}" CornerRadius="8" BorderThickness="2" BorderBrush="#ffe49a" MinWidth="240" MinHeight="200" Width="240" Height="200" >
|
|
|
+ <Border
|
|
|
+ x:Name="border"
|
|
|
+ Width="240"
|
|
|
+ Height="200"
|
|
|
+ MinWidth="240"
|
|
|
+ MinHeight="200"
|
|
|
+ Background="{StaticResource color.sys.layout.anti}"
|
|
|
+ BorderBrush="#ffe49a"
|
|
|
+ BorderThickness="2"
|
|
|
+ CornerRadius="8">
|
|
|
<Border.Effect>
|
|
|
- <DropShadowEffect BlurRadius="8" Direction="0" Opacity="0.16" ShadowDepth="0" Color="#000000" />
|
|
|
+ <DropShadowEffect
|
|
|
+ BlurRadius="8"
|
|
|
+ Direction="0"
|
|
|
+ Opacity="0.16"
|
|
|
+ ShadowDepth="0"
|
|
|
+ Color="#000000" />
|
|
|
</Border.Effect>
|
|
|
- <Grid MinWidth="240" MinHeight="200" Background="Transparent" Name="GridUi" Width="240" Height="200">
|
|
|
+ <Grid
|
|
|
+ Name="GridUi"
|
|
|
+ Width="240"
|
|
|
+ Height="200"
|
|
|
+ MinWidth="240"
|
|
|
+ MinHeight="200"
|
|
|
+ Background="Transparent">
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="32"></RowDefinition>
|
|
|
- <RowDefinition Height="auto"></RowDefinition>
|
|
|
- <RowDefinition Height="*"></RowDefinition>
|
|
|
- <RowDefinition Height="auto"></RowDefinition>
|
|
|
+ <RowDefinition Height="32" />
|
|
|
+ <RowDefinition Height="auto" />
|
|
|
+ <RowDefinition Height="*" />
|
|
|
+ <RowDefinition Height="auto" />
|
|
|
</Grid.RowDefinitions>
|
|
|
<Grid Margin="8,0,8,0">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
- <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
- <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
- <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
- <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="auto" />
|
|
|
+ <ColumnDefinition Width="auto" />
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ <ColumnDefinition Width="auto" />
|
|
|
+ <ColumnDefinition Width="auto" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
- <TextBlock x:Name="AuthorText" Grid.Column="1" FontFamily="SegoeUI" FontSize="12" VerticalAlignment="Center" LineHeight="16" Margin="2,2,0,0"/>
|
|
|
- <TextBlock Name="DateText" Grid.Column="3" Foreground="{StaticResource color.sys.text.neutral.lv2}" VerticalAlignment="Center" Margin="0,-2,0,0" FontFamily="SegoeUI" FontSize="12" LineHeight="16"></TextBlock>
|
|
|
- <Border Grid.Column="4" Visibility="Collapsed" MouseUp="CloseText_MouseUp" Background="#01000000" Margin="0,-8,-3,0">
|
|
|
- <Path Fill="#000000" Width="16" Height="16" >
|
|
|
+ <TextBlock
|
|
|
+ x:Name="AuthorText"
|
|
|
+ Grid.Column="1"
|
|
|
+ Margin="2,2,0,0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontFamily="SegoeUI"
|
|
|
+ FontSize="12"
|
|
|
+ LineHeight="16"
|
|
|
+ Text="{Binding AuthorText}" />
|
|
|
+ <TextBlock
|
|
|
+ Name="DateText"
|
|
|
+ Grid.Column="3"
|
|
|
+ Margin="0,-2,0,0"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontFamily="SegoeUI"
|
|
|
+ FontSize="12"
|
|
|
+ Foreground="{StaticResource color.sys.text.neutral.lv2}"
|
|
|
+ LineHeight="16"
|
|
|
+ Text="{Binding DateText}" />
|
|
|
+ <Border
|
|
|
+ Grid.Column="4"
|
|
|
+ Margin="0,-8,-3,0"
|
|
|
+ Background="#01000000"
|
|
|
+ MouseUp="CloseText_MouseUp"
|
|
|
+ Visibility="Collapsed">
|
|
|
+ <Path
|
|
|
+ Width="16"
|
|
|
+ Height="16"
|
|
|
+ Fill="#000000">
|
|
|
<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.LayoutTransform>
|
|
|
- <RotateTransform Angle="45"></RotateTransform>
|
|
|
+ <RotateTransform Angle="45" />
|
|
|
</Path.LayoutTransform>
|
|
|
</Path>
|
|
|
</Border>
|
|
|
</Grid>
|
|
|
- <Rectangle Margin="8,0,8,0" VerticalAlignment="Bottom" Height="1" Fill="{StaticResource color.sys.layout.divider}"/>
|
|
|
- <TextBox x:Name="ContentText" Grid.Row="2" Padding="2,4,0,0" Margin="4,0,4,0" Background="#CCFFFFFF" BorderThickness="0"
|
|
|
- AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"></TextBox>
|
|
|
+ <Rectangle
|
|
|
+ Height="1"
|
|
|
+ Margin="8,0,8,0"
|
|
|
+ VerticalAlignment="Bottom"
|
|
|
+ Fill="{StaticResource color.sys.layout.divider}" />
|
|
|
+ <TextBox
|
|
|
+ x:Name="ContentText"
|
|
|
+ Grid.Row="2"
|
|
|
+ Margin="4,0,4,0"
|
|
|
+ Padding="2,4,0,0"
|
|
|
+ AcceptsReturn="True"
|
|
|
+ Background="#CCFFFFFF"
|
|
|
+ BorderThickness="0"
|
|
|
+ Text="{Binding ContentText}"
|
|
|
+ TextWrapping="Wrap"
|
|
|
+ VerticalScrollBarVisibility="Auto" />
|
|
|
|
|
|
<Grid Grid.Row="3">
|
|
|
<ListBox
|
|
|
- x:Name="ListColor"
|
|
|
- Background="Transparent"
|
|
|
- BorderThickness="0"
|
|
|
- ItemContainerStyle="{StaticResource listboxItemStyle}"
|
|
|
- ItemTemplate="{StaticResource listboxData}"
|
|
|
- SelectionChanged="ListColor_SelectionChanged"
|
|
|
- >
|
|
|
+ x:Name="ListColor"
|
|
|
+ Background="Transparent"
|
|
|
+ BorderThickness="0"
|
|
|
+ ItemContainerStyle="{StaticResource listboxItemStyle}"
|
|
|
+ ItemTemplate="{StaticResource listboxData}"
|
|
|
+ SelectionChanged="ListColor_SelectionChanged">
|
|
|
<ListBox.ItemsPanel>
|
|
|
<ItemsPanelTemplate>
|
|
|
<WrapPanel Orientation="Horizontal" />
|
|
@@ -102,28 +167,34 @@
|
|
|
</ListBox>
|
|
|
</Grid>
|
|
|
|
|
|
-
|
|
|
<Button
|
|
|
- x:Name="BtnDelete" HorizontalAlignment="Right"
|
|
|
- Width="32" Grid.Row="3"
|
|
|
- Height="32"
|
|
|
- MaxHeight="40"
|
|
|
- Margin="16,0,10,5" BorderThickness="0"
|
|
|
- Foreground="#6B6F7D" Click="BtnDelete_Click"
|
|
|
-
|
|
|
- Style="{StaticResource btn.sec}">
|
|
|
+ x:Name="BtnDelete"
|
|
|
+ Grid.Row="3"
|
|
|
+ Width="32"
|
|
|
+ Height="32"
|
|
|
+ MaxHeight="40"
|
|
|
+ Margin="16,0,10,5"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ BorderThickness="0"
|
|
|
+ Click="BtnDelete_Click"
|
|
|
+ Foreground="#6B6F7D"
|
|
|
+ Style="{StaticResource btn.sec}">
|
|
|
<Path
|
|
|
- Width="32"
|
|
|
- Height="32"
|
|
|
- Data="M14 9.75H18V8.25H14V9.75ZM9 12.25H10.25V23C10.25 23.4142 10.5858 23.75 11 23.75H21C21.4142 23.75 21.75 23.4142 21.75 23V12.25H23V10.75H9V12.25ZM11.75 22.25V12.25H20.25V22.25H11.75ZM15.25 14.5V19.5H16.75V14.5H15.25Z"
|
|
|
- Fill="{Binding ElementName=BtnDelete, Path=Foreground}" />
|
|
|
+ Width="32"
|
|
|
+ Height="32"
|
|
|
+ Data="M14 9.75H18V8.25H14V9.75ZM9 12.25H10.25V23C10.25 23.4142 10.5858 23.75 11 23.75H21C21.4142 23.75 21.75 23.4142 21.75 23V12.25H23V10.75H9V12.25ZM11.75 22.25V12.25H20.25V22.25H11.75ZM15.25 14.5V19.5H16.75V14.5H15.25Z"
|
|
|
+ Fill="{Binding ElementName=BtnDelete, Path=Foreground}" />
|
|
|
</Button>
|
|
|
|
|
|
-
|
|
|
- <ResizeGrip Name="GripControl" Visibility="Collapsed" Grid.Row="3" HorizontalAlignment="Right" Margin="0,2,0,0" Cursor="SizeNWSE" MouseMove="ResizeGrip_MouseMove"></ResizeGrip>
|
|
|
+ <ResizeGrip
|
|
|
+ Name="GripControl"
|
|
|
+ Grid.Row="3"
|
|
|
+ Margin="0,2,0,0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Cursor="SizeNWSE"
|
|
|
+ MouseMove="ResizeGrip_MouseMove"
|
|
|
+ Visibility="Collapsed" />
|
|
|
</Grid>
|
|
|
-
|
|
|
</Border>
|
|
|
-
|
|
|
</Grid>
|
|
|
-</annotview:StickyPopupExt>
|
|
|
+</annotview:StickyPopupExt>
|