StickyNotePopup.xaml 6.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <annotview:StickyPopupExt x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.StickyNotePopup"
  2. xmlns:annotview="clr-namespace:ComPDFKitViewer;assembly=ComPDFKit.Viewer"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
  8. mc:Ignorable="d" Background="Transparent"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <annotview:StickyPopupExt.Resources>
  11. <DataTemplate x:Key="listboxData">
  12. <Ellipse
  13. Width="20"
  14. Height="20"
  15. Fill="{Binding Color}" />
  16. </DataTemplate>
  17. <Style x:Key="listboxItemStyle" TargetType="{x:Type ListBoxItem}">
  18. <Setter Property="HorizontalContentAlignment" Value="Center" />
  19. <Setter Property="Height" Value="32" />
  20. <Setter Property="Margin" Value="2,0,2,0" />
  21. </Style>
  22. </annotview:StickyPopupExt.Resources>
  23. <Border x:Name="border" Background="{StaticResource color.sys.layout.anti}" CornerRadius="8" BorderThickness="2" BorderBrush="#ffe49a" MinWidth="240" MinHeight="200" Width="240" Height="200" >
  24. <Border.Effect>
  25. <DropShadowEffect BlurRadius="8" Direction="0" Opacity="0.16" ShadowDepth="0" Color="#000000" />
  26. </Border.Effect>
  27. <Grid Name="GridUi" Margin="8">
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="32"/>
  30. <RowDefinition Height="1"/>
  31. <RowDefinition />
  32. <RowDefinition Height="32"/>
  33. </Grid.RowDefinitions>
  34. <Grid >
  35. <TextBlock x:Name="AuthorText" Text="test" FontSize="12" Foreground="{StaticResource color.sys.text.neutral.lv2}" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  36. <TextBlock x:Name="DateTextui" Text="date time" FontSize="12" Foreground="{StaticResource color.sys.text.neutral.lv2}" VerticalAlignment="Center" HorizontalAlignment="Right"/>
  37. </Grid>
  38. <Border MouseUp="CloseText_MouseUp"/>
  39. <Rectangle Grid.Row="1" Fill="{StaticResource color.sys.layout.divider}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
  40. <Grid Grid.Row="2" Margin="0,2,0,2">
  41. <TextBox Name="ContentText" Grid.Row="2" Margin="4,0,4,0" Background="#CCFFFFFF" BorderThickness="0"
  42. AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"></TextBox>
  43. </Grid>
  44. <Grid Grid.Row="3">
  45. <ListBox
  46. x:Name="ListColor"
  47. Background="Transparent"
  48. BorderThickness="0"
  49. ItemContainerStyle="{StaticResource listboxItemStyle}"
  50. ItemTemplate="{StaticResource listboxData}"
  51. SelectionChanged="ListColor_SelectionChanged"
  52. >
  53. <ListBox.ItemsPanel>
  54. <ItemsPanelTemplate>
  55. <WrapPanel Orientation="Horizontal" />
  56. </ItemsPanelTemplate>
  57. </ListBox.ItemsPanel>
  58. </ListBox>
  59. </Grid>
  60. <!--<Grid.RowDefinitions>
  61. <RowDefinition Height="auto"></RowDefinition>
  62. <RowDefinition Height="auto"></RowDefinition>
  63. <RowDefinition Height="*"></RowDefinition>
  64. <RowDefinition Height="auto"></RowDefinition>
  65. </Grid.RowDefinitions>
  66. <Grid>
  67. <Grid.ColumnDefinitions>
  68. <ColumnDefinition Width="auto"></ColumnDefinition>
  69. <ColumnDefinition Width="auto"></ColumnDefinition>
  70. <ColumnDefinition Width="*"></ColumnDefinition>
  71. <ColumnDefinition Width="auto"></ColumnDefinition>
  72. <ColumnDefinition Width="auto"></ColumnDefinition>
  73. </Grid.ColumnDefinitions>
  74. <Path Fill="#000000" Margin="2,2,0,0" Width="20" Height="20">
  75. <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>
  76. </Path>
  77. <TextBlock Grid.Column="1" FontFamily="SegoeUI" FontSize="12" VerticalAlignment="Center" LineHeight="16" Margin="2,2,0,0">Note</TextBlock>
  78. <TextBlock Name="DateText" Grid.Column="3" Foreground="#000000" VerticalAlignment="Center" Margin="0,-2,0,0" FontFamily="SegoeUI" FontSize="12" LineHeight="16"></TextBlock>
  79. <Border Grid.Column="4" MouseUp="CloseText_MouseUp" Background="#01000000" Margin="0,-8,-3,0">
  80. <Path Fill="#000000" Width="16" Height="16" >
  81. <Path.Data>
  82. 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
  83. </Path.Data>
  84. <Path.LayoutTransform>
  85. <RotateTransform Angle="45"></RotateTransform>
  86. </Path.LayoutTransform>
  87. </Path>
  88. </Border>
  89. </Grid>
  90. <TextBlock Name="AuthorText" Grid.Row="1" FontFamily="SegoeUI" FontSize="12" LineHeight="16" Margin="2,2,0,0"></TextBlock>
  91. <TextBox Name="ContentText" Grid.Row="2" Margin="4,0,4,0" Background="#CCFFFFFF" BorderThickness="0"
  92. AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"></TextBox>-->
  93. <!--<ResizeGrip Name="GripControl" Grid.Row="3" HorizontalAlignment="Right" Margin="0,2,0,0" Cursor="SizeNWSE" MouseMove="ResizeGrip_MouseMove"></ResizeGrip>-->
  94. </Grid>
  95. </Border>
  96. </annotview:StickyPopupExt>