123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <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>
- <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.Effect>
- <DropShadowEffect BlurRadius="8" Direction="0" Opacity="0.16" ShadowDepth="0" Color="#000000" />
- </Border.Effect>
- <Grid MinWidth="240" MinHeight="200" Background="White" Name="GridUi" Width="240" Height="200">
- <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>
- <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" 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>
-
- <TextBox Name="ContentText" Grid.Row="2" Margin="4,0,4,0" Background="#CCFFFFFF" BorderThickness="0"
- AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"></TextBox>
- <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>
- <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}">
- <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}" />
- </Button>
- <ResizeGrip Name="GripControl" Visibility="Collapsed" Grid.Row="3" HorizontalAlignment="Right" Margin="0,2,0,0" Cursor="SizeNWSE" MouseMove="ResizeGrip_MouseMove"></ResizeGrip>
- </Grid>
- </Border>
-
- </Grid>
- </annotview:StickyPopupExt>
|