|
@@ -0,0 +1,98 @@
|
|
|
+<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.Resources>
|
|
|
+ <DataTemplate x:Key="listboxData">
|
|
|
+ <Ellipse
|
|
|
+ Width="20"
|
|
|
+ Height="20"
|
|
|
+ Fill="{Binding Color}" />
|
|
|
+ </DataTemplate>
|
|
|
+ <Style x:Key="listboxItemStyle" TargetType="{x:Type ListBoxItem}">
|
|
|
+ <Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
+ <Setter Property="Height" Value="32" />
|
|
|
+ <Setter Property="Margin" Value="2,0,2,0" />
|
|
|
+ </Style>
|
|
|
+ </annotview:StickyPopupExt.Resources>
|
|
|
+ <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.Effect>
|
|
|
+ <DropShadowEffect BlurRadius="8" Direction="0" Opacity="0.16" ShadowDepth="0" Color="#000000" />
|
|
|
+ </Border.Effect>
|
|
|
+ <Grid Name="GridUi" Margin="8">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="32"/>
|
|
|
+ <RowDefinition Height="1"/>
|
|
|
+ <RowDefinition />
|
|
|
+ <RowDefinition Height="32"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid >
|
|
|
+ <TextBlock x:Name="AuthorText" Text="test" FontSize="12" Foreground="{StaticResource color.sys.text.neutral.lv2}" VerticalAlignment="Center" HorizontalAlignment="Left"/>
|
|
|
+ <TextBlock x:Name="DateTextui" Text="date time" FontSize="12" Foreground="{StaticResource color.sys.text.neutral.lv2}" VerticalAlignment="Center" HorizontalAlignment="Right"/>
|
|
|
+ </Grid>
|
|
|
+ <Border MouseUp="CloseText_MouseUp"/>
|
|
|
+ <Rectangle Grid.Row="1" Fill="{StaticResource color.sys.layout.divider}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
|
|
|
+ <Grid Grid.Row="2" Margin="0,2,0,2">
|
|
|
+ <TextBox Name="ContentText" Grid.Row="2" Margin="4,0,4,0" Background="#CCFFFFFF" BorderThickness="0"
|
|
|
+ AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"></TextBox>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <Grid Grid.Row="3">
|
|
|
+ <ListBox
|
|
|
+ x:Name="ListColor"
|
|
|
+ Background="Transparent"
|
|
|
+ BorderThickness="0"
|
|
|
+ ItemContainerStyle="{StaticResource listboxItemStyle}"
|
|
|
+ ItemTemplate="{StaticResource listboxData}"
|
|
|
+ SelectionChanged="ListColor_SelectionChanged"
|
|
|
+ >
|
|
|
+ <ListBox.ItemsPanel>
|
|
|
+ <ItemsPanelTemplate>
|
|
|
+ <WrapPanel Orientation="Horizontal" />
|
|
|
+ </ItemsPanelTemplate>
|
|
|
+ </ListBox.ItemsPanel>
|
|
|
+ </ListBox>
|
|
|
+ </Grid>
|
|
|
+
|
|
|
+ <!--<Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="auto"></RowDefinition>
|
|
|
+ <RowDefinition Height="auto"></RowDefinition>
|
|
|
+ <RowDefinition Height="*"></RowDefinition>
|
|
|
+ <RowDefinition Height="auto"></RowDefinition>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="*"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
+ <ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Path Fill="#000000" Margin="2,2,0,0" Width="20" Height="20">
|
|
|
+ <Path.Data>M19,2 L19,15 L9.137,15 L4,18.383095 L4,15 L1,15 L1,2 L19,2 Z M18,3 L2,3 L2,14 L5,14 L5,16.616 L8.86150802,14 L18,14 L18,3 Z M15,9 L15,10 L5,10 L5,9 L15,9 Z M11,6 L11,7 L5,7 L5,6 L11,6 Z</Path.Data>
|
|
|
+ </Path>
|
|
|
+ <TextBlock Grid.Column="1" FontFamily="SegoeUI" FontSize="12" VerticalAlignment="Center" LineHeight="16" Margin="2,2,0,0">Note</TextBlock>
|
|
|
+ <TextBlock Name="DateText" Grid.Column="3" Foreground="#000000" VerticalAlignment="Center" Margin="0,-2,0,0" FontFamily="SegoeUI" FontSize="12" LineHeight="16"></TextBlock>
|
|
|
+ <Border Grid.Column="4" MouseUp="CloseText_MouseUp" Background="#01000000" Margin="0,-8,-3,0">
|
|
|
+ <Path Fill="#000000" Width="16" Height="16" >
|
|
|
+ <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>
|
|
|
+ </Path.LayoutTransform>
|
|
|
+ </Path>
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+ <TextBlock Name="AuthorText" Grid.Row="1" FontFamily="SegoeUI" FontSize="12" LineHeight="16" Margin="2,2,0,0"></TextBlock>
|
|
|
+ <TextBox Name="ContentText" Grid.Row="2" Margin="4,0,4,0" Background="#CCFFFFFF" BorderThickness="0"
|
|
|
+ AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"></TextBox>-->
|
|
|
+ <!--<ResizeGrip Name="GripControl" Grid.Row="3" HorizontalAlignment="Right" Margin="0,2,0,0" Cursor="SizeNWSE" MouseMove="ResizeGrip_MouseMove"></ResizeGrip>-->
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+</annotview:StickyPopupExt>
|