AnnotationContent.xaml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. <UserControl
  2. x:Class="PDF_Master.Views.BOTA.AnnotationContent"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:bota="clr-namespace:PDF_Master.ViewModels.BOTA"
  6. xmlns:convert="clr-namespace:PDF_Master.DataConvert"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:data="clr-namespace:ComPDFKit.PDFDocument;assembly=ComPDFKit.Desk"
  9. xmlns:helper="clr-namespace:PDF_Master.Helper"
  10. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  11. xmlns:local="clr-namespace:PDF_Master.Views.BOTA"
  12. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  13. xmlns:prism="http://prismlibrary.com/"
  14. xmlns:property="clr-namespace:PDF_Master.Properties"
  15. d:DataContext="{d:DesignInstance Type=bota:AnnotationContentViewModel}"
  16. d:DesignHeight="450"
  17. d:DesignWidth="300"
  18. prism:ViewModelLocator.AutoWireViewModel="True"
  19. mc:Ignorable="d">
  20. <UserControl.Resources>
  21. <ResourceDictionary>
  22. <ResourceDictionary.MergedDictionaries>
  23. <ResourceDictionary Source="pack://application:,,,/Styles/ButtonStyle.xaml" />
  24. <ResourceDictionary Source="pack://application:,,,/Styles/ComboxStyle.xaml" />
  25. <ResourceDictionary Source="pack://application:,,,/Styles/ListViewStyle.xaml" />
  26. <ResourceDictionary Source="pack://application:,,,/Styles/ExpanderStyle.xaml" />
  27. </ResourceDictionary.MergedDictionaries>
  28. <DataTemplate x:Key="AnnotationListItemTemplate">
  29. <local:AnnotationListItem />
  30. </DataTemplate>
  31. <ContextMenu x:Key="ContextMenu">
  32. <MenuItem
  33. Name="MenuItemCopyText"
  34. Click="MenuItemCopyText_Click"
  35. Header="复制文本" />
  36. <MenuItem Header="导入注释为XFDF格式 " />
  37. <MenuItem Header="导出注释为XFDF格式 " />
  38. <MenuItem
  39. Name="MenuItemDelete"
  40. Click="MenuItemDelete_Click"
  41. Header="删除" />
  42. </ContextMenu>
  43. <SolidColorBrush x:Key="path.fill" Color="#616469" />
  44. <convert:IntToBooleanConvert x:Key="IntToBooleanConvert" />
  45. <convert:AnnotateFontSizeConverter x:Key="AnnotateFontSizeConverter" />
  46. <convert:GroupHeaderConverter x:Key="GroupHeaderConverter" />
  47. <convert:UnVisibleToBoolConvert x:Key="UnvisibleToBool" />
  48. </ResourceDictionary>
  49. </UserControl.Resources>
  50. <Grid PreviewMouseLeftButtonDown="Grid_PreviewMouseLeftButtonDown">
  51. <Grid.RowDefinitions>
  52. <RowDefinition Height="48" />
  53. <RowDefinition Height="*" />
  54. </Grid.RowDefinitions>
  55. <Grid Grid.Row="1">
  56. <Grid.ColumnDefinitions>
  57. <ColumnDefinition Width="29*" />
  58. <ColumnDefinition />
  59. </Grid.ColumnDefinitions>
  60. <ListBox
  61. x:Name="AnnotationList"
  62. Grid.ColumnSpan="3"
  63. HorizontalContentAlignment="Stretch"
  64. Background="{StaticResource color.sys.layout.mg}"
  65. BorderThickness="0"
  66. ItemTemplate="{StaticResource AnnotationListItemTemplate}"
  67. ItemsSource="{Binding AnnotationListItems}"
  68. ScrollViewer.HorizontalScrollBarVisibility="Disabled"
  69. SelectionChanged="AnnotationList_SelectionChanged"
  70. SelectionMode="Extended"
  71. MouseDown="ListBox_MouseDown"
  72. >
  73. <ListBox.ItemContainerStyle>
  74. <Style TargetType="ListBoxItem">
  75. <Setter Property="HorizontalContentAlignment" Value="Stretch" />
  76. <EventSetter Event="PreviewMouseDown" Handler="ListBoxItem_PreviewMouseDown" />
  77. <EventSetter Event="PreviewMouseDoubleClick" Handler="ListBoxItem_PreviewMouseDoubleClick" />
  78. <Setter Property="Template" Value="{StaticResource AnnotationListItemStyle}" />
  79. <Setter Property="Padding" Value="0" />
  80. <Setter Property="Margin" Value="0,-1,0,-1" />
  81. <Setter Property="ContextMenu" Value="{StaticResource ContextMenu}" />
  82. </Style>
  83. </ListBox.ItemContainerStyle>
  84. <ListBox.GroupStyle>
  85. <GroupStyle>
  86. <GroupStyle.ContainerStyle>
  87. <Style TargetType="{x:Type GroupItem}">
  88. <Setter Property="Background" Value="{StaticResource color.sys.layout.mg}" />
  89. <Setter Property="Template">
  90. <Setter.Value>
  91. <ControlTemplate TargetType="{x:Type GroupItem}">
  92. <Expander
  93. Name="Expander"
  94. Margin="-1,-1,-1,-1"
  95. HorizontalAlignment="Stretch"
  96. HorizontalContentAlignment="Stretch"
  97. VerticalContentAlignment="Stretch"
  98. Style="{StaticResource GropExpanderHeader}">
  99. <Expander.Header>
  100. <Grid
  101. Height="25"
  102. HorizontalAlignment="Stretch"
  103. VerticalAlignment="Stretch">
  104. <Grid.RowDefinitions>
  105. <RowDefinition />
  106. </Grid.RowDefinitions>
  107. <TextBlock
  108. Name="GroupTitle"
  109. Margin="10,0,0,0"
  110. VerticalAlignment="Center"
  111. FontFamily="Segoe UI Semibold"
  112. FontSize="14"
  113. FontWeight="SemiBold"
  114. Text="{Binding Name, Converter={StaticResource GroupHeaderConverter}}"
  115. TextAlignment="Left" />
  116. <!--<TextBlock
  117. Name="Count"
  118. Margin="0,0,8,0"
  119. HorizontalAlignment="Right"
  120. VerticalAlignment="Center"
  121. FontFamily="Segoe UI Semibold"
  122. FontSize="{Binding Source={x:Static property:Settings.Default}, Path=AnnotateFontSize, Converter={StaticResource AnnotateFontSizeConverter}}"
  123. FontWeight="SemiBold"
  124. Foreground="#FF666666"
  125. Text="{Binding ItemCount}"
  126. TextAlignment="Right" />-->
  127. </Grid>
  128. </Expander.Header>
  129. <ItemsPresenter />
  130. </Expander>
  131. </ControlTemplate>
  132. </Setter.Value>
  133. </Setter>
  134. </Style>
  135. </GroupStyle.ContainerStyle>
  136. </GroupStyle>
  137. </ListBox.GroupStyle>
  138. <!--<ListBox.ContextMenu>
  139. <ContextMenu DataContext="{Binding PlacementTarget.Tag, RelativeSource={RelativeSource Self}}" FontSize="14">
  140. <MenuItem
  141. Name="MenuItemCopyText"
  142. CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}, Path=PlacementTarget.DataContext}"
  143. Header="复制文本" />
  144. <MenuItem
  145. Command="{Binding DataContext.EditPageIndexCommand, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
  146. CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}, Path=PlacementTarget.DataContext}"
  147. Header="添加笔记" />
  148. <MenuItem CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}, Path=PlacementTarget.DataContext}" Header="导出注释为XFDF格式 " />
  149. <MenuItem CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}, Path=PlacementTarget.DataContext}" Header="删除" />
  150. </ContextMenu>
  151. </ListBox.ContextMenu>-->
  152. <i:Interaction.Triggers>
  153. <i:EventTrigger EventName="Loaded">
  154. <helper:AdvancedInvokeCommandAction
  155. Command="{Binding DataContext.LoadedCommand, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
  156. CommandParameter="{Binding ElementName=AnnotationList}"
  157. PassEventArgsToCommand="True" />
  158. </i:EventTrigger>
  159. </i:Interaction.Triggers>
  160. </ListBox>
  161. <StackPanel
  162. Name="EmptyPanel"
  163. Grid.ColumnSpan="2"
  164. VerticalAlignment="Center"
  165. Visibility="{Binding IsEmptyPanelVisibility}">
  166. <Image
  167. Width="128"
  168. Height="128"
  169. Source="pack://application:,,,/Resources/BOTA/empty_annotation.png" />
  170. <TextBlock
  171. Name="txtEmpty"
  172. Margin="0,12,0,0"
  173. FontFamily="Segoe UI"
  174. FontSize="16"
  175. Text="{Binding T_EmptyTitle}"
  176. TextAlignment="Center" />
  177. <TextBlock
  178. Name="txtEmpty2"
  179. Width="150"
  180. Margin="0,12,0,0"
  181. FontFamily="Segoe UI"
  182. FontSize="16"
  183. Foreground="#94989C"
  184. Text="{Binding T_EmptyContext}"
  185. TextAlignment="Center"
  186. TextWrapping="Wrap" />
  187. </StackPanel>
  188. <StackPanel
  189. Name="HideAnnotPanel"
  190. Grid.ColumnSpan="2"
  191. VerticalAlignment="Center"
  192. Visibility="{Binding IsHideAnnotPanelVisibility}">
  193. <Image
  194. Width="128"
  195. Height="128"
  196. Source="pack://application:,,,/Resources/BOTA/HideAnnot.png" />
  197. <TextBlock
  198. Name="txtHideAnnot"
  199. Margin="0,12,0,0"
  200. FontFamily="Segoe UI"
  201. FontSize="16"
  202. Text="{Binding T_EmptyTitle}"
  203. TextAlignment="Center" />
  204. </StackPanel>
  205. </Grid>
  206. <Border BorderBrush="{StaticResource color.field.border.norm}" BorderThickness="0,0,0,1">
  207. <Grid
  208. Name="TopGrid"
  209. Grid.Row="0"
  210. Background="{StaticResource color.sys.layout.mg}">
  211. <TextBlock
  212. x:Name="Title"
  213. Margin="16,0,0,0"
  214. VerticalAlignment="Center"
  215. FontFamily="Segoe UI"
  216. FontSize="14"
  217. FontWeight="SemiBold"
  218. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  219. Text="Markup"
  220. TextAlignment="Left" />
  221. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  222. <Button
  223. x:Name="BtnScreen"
  224. Width="40"
  225. HorizontalAlignment="Right"
  226. Command="{Binding ScreenCommand}"
  227. CommandParameter="{Binding ElementName=BtnScreen}"
  228. Focusable="False"
  229. IsEnabled="{Binding ElementName=AnnotationList, Path=Items.Count, Converter={StaticResource IntToBooleanConvert}}"
  230. Style="{StaticResource PageEditToolBtn}">
  231. <Path Data="M7.5 6.76293V13.3136L8.5 13.7367V6.76293L12.4595 3.82995C12.485 3.81109 12.5 3.78128 12.5 3.74959V2.5H3.5V3.74959C3.5 3.78128 3.51502 3.81109 3.54048 3.82995L7.5 6.76293ZM7.07275 13.1328C7.07244 13.1327 7.07305 13.133 7.07275 13.1328V13.1328ZM2 1.8C2 1.35817 2.35817 1 2.8 1H13.2C13.6418 1 14 1.35817 14 1.8V3.74959C14 4.25656 13.7597 4.73353 13.3524 5.03529L10 7.51852V14.7929C10 15.3656 9.41576 15.7528 8.88829 15.5297L6.48829 14.5143C6.19231 14.3891 6 14.0989 6 13.7775V7.51852L2.64764 5.03529C2.24026 4.73353 2 4.25656 2 3.74959V1.8Z" Fill="{StaticResource path.fill}">
  232. <Path.RenderTransform>
  233. <TransformGroup>
  234. <TranslateTransform Y="-3" />
  235. </TransformGroup>
  236. </Path.RenderTransform>
  237. </Path>
  238. </Button>
  239. <Button
  240. Name="BtnMore"
  241. Width="40"
  242. Margin="0,0,10,0"
  243. HorizontalAlignment="Right"
  244. Click="BtnMore_Click"
  245. Initialized="BtnMore_Initialized"
  246. Style="{StaticResource PageEditToolBtn}">
  247. <Path Data="M3 2C3 2.82843 2.32843 3.5 1.5 3.5C0.671573 3.5 0 2.82843 0 2C0 1.17157 0.671573 0.5 1.5 0.5C2.32843 0.5 3 1.17157 3 2ZM8.3999 2C8.3999 2.82843 7.72833 3.5 6.8999 3.5C6.07148 3.5 5.3999 2.82843 5.3999 2C5.3999 1.17157 6.07148 0.5 6.8999 0.5C7.72833 0.5 8.3999 1.17157 8.3999 2ZM12.5 3.5C13.3284 3.5 14 2.82843 14 2C14 1.17157 13.3284 0.5 12.5 0.5C11.6716 0.5 11 1.17157 11 2C11 2.82843 11.6716 3.5 12.5 3.5Z" Fill="{StaticResource path.fill}">
  248. <Path.RenderTransform>
  249. <TransformGroup>
  250. <TranslateTransform Y="-3" />
  251. </TransformGroup>
  252. </Path.RenderTransform>
  253. </Path>
  254. <Button.ContextMenu>
  255. <ContextMenu
  256. Name="MenuMore"
  257. Width="auto"
  258. Placement="Bottom">
  259. <!--<ContextMenu.ItemContainerStyle>
  260. <Style TargetType="MenuItem">
  261. <Setter Property="Padding" Value="-25,7,-35,7" />
  262. </Style>
  263. </ContextMenu.ItemContainerStyle>-->
  264. <MenuItem
  265. Name="MenuExpandAll"
  266. Width="auto"
  267. Click="MenuExpandAll_Click"
  268. Header="{Binding T_Expand}"
  269. IsEnabled="{Binding IsEmptyPanelVisibility, Converter={StaticResource UnvisibleToBool}}">
  270. <MenuItem.Icon>
  271. <Border Background="Transparent" />
  272. </MenuItem.Icon>
  273. </MenuItem>
  274. <MenuItem
  275. Name="MenuCollapseAll"
  276. Click="MenuCollapseAll_Click"
  277. Header="{Binding T_Collapse}"
  278. IsEnabled="{Binding IsEmptyPanelVisibility, Converter={StaticResource UnvisibleToBool}}" />
  279. <MenuItem Name="MenuSort" Visibility="Collapsed">
  280. <MenuItem.Header>
  281. <TextBlock Name="MenuSortText" Text="排序" />
  282. </MenuItem.Header>
  283. <MenuItem Name="MenuPageSort" Command="{Binding PageSortCommand}">
  284. <!--<MenuItem.Icon>
  285. <Path
  286. HorizontalAlignment="Center"
  287. VerticalAlignment="Center"
  288. Data="M10.807106,0.0999999046 L15.0999992,5.39289312 L15.0999992,15.8999991 L0.899999857,15.8999991 L0.899999857,0.0999999046 L10.807106,0.0999999046 Z M10.3929999,1.0999999 L1.89999986,1.0999999 L1.89999986,14.8989999 L14.0989999,14.8989999 L14.0989999,5.8059999 L10.3929999,1.0999999 Z M8,10.53125 C8.15885417,10.53125 8.29361979,10.5833333 8.40429688,10.6875 C8.51497396,10.7916667 8.5703125,10.9166667 8.5703125,11.0625 C8.5703125,11.2057292 8.51497396,11.328776 8.40429688,11.4316406 C8.29361979,11.5345052 8.15885417,11.5859375 8,11.5859375 C7.84375,11.5859375 7.7109375,11.5345052 7.6015625,11.4316406 C7.4921875,11.328776 7.4375,11.2057292 7.4375,11.0625 C7.4375,10.9166667 7.4921875,10.7916667 7.6015625,10.6875 C7.7109375,10.5833333 7.84375,10.53125 8,10.53125 Z M6.21875,5.7734375 L6.21875,11.5 L5.3125,11.5 L5.3125,6.8828125 C5.1484375,7 4.97200521,7.09960938 4.78320312,7.18164062 C4.59440104,7.26367188 4.37890625,7.3359375 4.13671875,7.3984375 L4.13671875,7.3984375 L4.13671875,6.625 C4.28776042,6.57552083 4.43359375,6.5234375 4.57421875,6.46875 C4.71484375,6.4140625 4.85351562,6.35286458 4.99023438,6.28515625 C5.12695312,6.21744792 5.26497396,6.14192708 5.40429688,6.05859375 C5.54361979,5.97526042 5.6875,5.88020833 5.8359375,5.7734375 L5.8359375,5.7734375 L6.21875,5.7734375 Z M11.3671875,5.7734375 L11.3671875,11.5 L10.4609375,11.5 L10.4609375,6.8828125 C10.296875,7 10.1204427,7.09960938 9.93164062,7.18164062 C9.74283854,7.26367188 9.52734375,7.3359375 9.28515625,7.3984375 L9.28515625,7.3984375 L9.28515625,6.625 C9.43619792,6.57552083 9.58203125,6.5234375 9.72265625,6.46875 C9.86328125,6.4140625 10.0019531,6.35286458 10.1386719,6.28515625 C10.2753906,6.21744792 10.4134115,6.14192708 10.5527344,6.05859375 C10.6920573,5.97526042 10.8359375,5.88020833 10.984375,5.7734375 L10.984375,5.7734375 L11.3671875,5.7734375 Z M8,7.44140625 C8.15885417,7.44140625 8.29361979,7.49348958 8.40429688,7.59765625 C8.51497396,7.70182292 8.5703125,7.82682292 8.5703125,7.97265625 C8.5703125,8.11588542 8.51497396,8.23893229 8.40429688,8.34179688 C8.29361979,8.44466146 8.15885417,8.49609375 8,8.49609375 C7.84375,8.49609375 7.7109375,8.44466146 7.6015625,8.34179688 C7.4921875,8.23893229 7.4375,8.11588542 7.4375,7.97265625 C7.4375,7.82682292 7.4921875,7.70182292 7.6015625,7.59765625 C7.7109375,7.49348958 7.84375,7.44140625 8,7.44140625 Z"
  289. Fill="Black" />
  290. </MenuItem.Icon>-->
  291. <MenuItem.Header>
  292. <TextBlock Name="MenuPageSortText" Text="按页面排序" />
  293. </MenuItem.Header>
  294. </MenuItem>
  295. <MenuItem
  296. Name="MenuTimeAscending"
  297. Command="{Binding TimeAscendingCommand}"
  298. Visibility="Collapsed">
  299. <!--<MenuItem.Icon>
  300. <Path
  301. HorizontalAlignment="Center"
  302. VerticalAlignment="Center"
  303. Data="M10.807106,0.0999999046 L15.0999992,5.39289312 L15.0999992,15.8999991 L0.899999857,15.8999991 L0.899999857,0.0999999046 L10.807106,0.0999999046 Z M10.3929999,1.0999999 L1.89999986,1.0999999 L1.89999986,14.8989999 L14.0989999,14.8989999 L14.0989999,5.8059999 L10.3929999,1.0999999 Z M8,10.53125 C8.15885417,10.53125 8.29361979,10.5833333 8.40429688,10.6875 C8.51497396,10.7916667 8.5703125,10.9166667 8.5703125,11.0625 C8.5703125,11.2057292 8.51497396,11.328776 8.40429688,11.4316406 C8.29361979,11.5345052 8.15885417,11.5859375 8,11.5859375 C7.84375,11.5859375 7.7109375,11.5345052 7.6015625,11.4316406 C7.4921875,11.328776 7.4375,11.2057292 7.4375,11.0625 C7.4375,10.9166667 7.4921875,10.7916667 7.6015625,10.6875 C7.7109375,10.5833333 7.84375,10.53125 8,10.53125 Z M6.21875,5.7734375 L6.21875,11.5 L5.3125,11.5 L5.3125,6.8828125 C5.1484375,7 4.97200521,7.09960938 4.78320312,7.18164062 C4.59440104,7.26367188 4.37890625,7.3359375 4.13671875,7.3984375 L4.13671875,7.3984375 L4.13671875,6.625 C4.28776042,6.57552083 4.43359375,6.5234375 4.57421875,6.46875 C4.71484375,6.4140625 4.85351562,6.35286458 4.99023438,6.28515625 C5.12695312,6.21744792 5.26497396,6.14192708 5.40429688,6.05859375 C5.54361979,5.97526042 5.6875,5.88020833 5.8359375,5.7734375 L5.8359375,5.7734375 L6.21875,5.7734375 Z M11.3671875,5.7734375 L11.3671875,11.5 L10.4609375,11.5 L10.4609375,6.8828125 C10.296875,7 10.1204427,7.09960938 9.93164062,7.18164062 C9.74283854,7.26367188 9.52734375,7.3359375 9.28515625,7.3984375 L9.28515625,7.3984375 L9.28515625,6.625 C9.43619792,6.57552083 9.58203125,6.5234375 9.72265625,6.46875 C9.86328125,6.4140625 10.0019531,6.35286458 10.1386719,6.28515625 C10.2753906,6.21744792 10.4134115,6.14192708 10.5527344,6.05859375 C10.6920573,5.97526042 10.8359375,5.88020833 10.984375,5.7734375 L10.984375,5.7734375 L11.3671875,5.7734375 Z M8,7.44140625 C8.15885417,7.44140625 8.29361979,7.49348958 8.40429688,7.59765625 C8.51497396,7.70182292 8.5703125,7.82682292 8.5703125,7.97265625 C8.5703125,8.11588542 8.51497396,8.23893229 8.40429688,8.34179688 C8.29361979,8.44466146 8.15885417,8.49609375 8,8.49609375 C7.84375,8.49609375 7.7109375,8.44466146 7.6015625,8.34179688 C7.4921875,8.23893229 7.4375,8.11588542 7.4375,7.97265625 C7.4375,7.82682292 7.4921875,7.70182292 7.6015625,7.59765625 C7.7109375,7.49348958 7.84375,7.44140625 8,7.44140625 Z"
  304. Fill="Black" />
  305. </MenuItem.Icon>-->
  306. <MenuItem.Header>
  307. <TextBlock Name="MenuTimeAscendingText" Text="按时间正序排列" />
  308. </MenuItem.Header>
  309. </MenuItem>
  310. <MenuItem
  311. Name="MenuTimeDescending"
  312. Command="{Binding TimeDescendingCommand}"
  313. Visibility="Collapsed">
  314. <!--<MenuItem.Icon>
  315. <Path
  316. HorizontalAlignment="Center"
  317. VerticalAlignment="Center"
  318. Data="M10.807106,0.0999999046 L15.0999992,5.39289312 L15.0999992,15.8999991 L0.899999857,15.8999991 L0.899999857,0.0999999046 L10.807106,0.0999999046 Z M10.3929999,1.0999999 L1.89999986,1.0999999 L1.89999986,14.8989999 L14.0989999,14.8989999 L14.0989999,5.8059999 L10.3929999,1.0999999 Z M8,10.53125 C8.15885417,10.53125 8.29361979,10.5833333 8.40429688,10.6875 C8.51497396,10.7916667 8.5703125,10.9166667 8.5703125,11.0625 C8.5703125,11.2057292 8.51497396,11.328776 8.40429688,11.4316406 C8.29361979,11.5345052 8.15885417,11.5859375 8,11.5859375 C7.84375,11.5859375 7.7109375,11.5345052 7.6015625,11.4316406 C7.4921875,11.328776 7.4375,11.2057292 7.4375,11.0625 C7.4375,10.9166667 7.4921875,10.7916667 7.6015625,10.6875 C7.7109375,10.5833333 7.84375,10.53125 8,10.53125 Z M6.21875,5.7734375 L6.21875,11.5 L5.3125,11.5 L5.3125,6.8828125 C5.1484375,7 4.97200521,7.09960938 4.78320312,7.18164062 C4.59440104,7.26367188 4.37890625,7.3359375 4.13671875,7.3984375 L4.13671875,7.3984375 L4.13671875,6.625 C4.28776042,6.57552083 4.43359375,6.5234375 4.57421875,6.46875 C4.71484375,6.4140625 4.85351562,6.35286458 4.99023438,6.28515625 C5.12695312,6.21744792 5.26497396,6.14192708 5.40429688,6.05859375 C5.54361979,5.97526042 5.6875,5.88020833 5.8359375,5.7734375 L5.8359375,5.7734375 L6.21875,5.7734375 Z M11.3671875,5.7734375 L11.3671875,11.5 L10.4609375,11.5 L10.4609375,6.8828125 C10.296875,7 10.1204427,7.09960938 9.93164062,7.18164062 C9.74283854,7.26367188 9.52734375,7.3359375 9.28515625,7.3984375 L9.28515625,7.3984375 L9.28515625,6.625 C9.43619792,6.57552083 9.58203125,6.5234375 9.72265625,6.46875 C9.86328125,6.4140625 10.0019531,6.35286458 10.1386719,6.28515625 C10.2753906,6.21744792 10.4134115,6.14192708 10.5527344,6.05859375 C10.6920573,5.97526042 10.8359375,5.88020833 10.984375,5.7734375 L10.984375,5.7734375 L11.3671875,5.7734375 Z M8,7.44140625 C8.15885417,7.44140625 8.29361979,7.49348958 8.40429688,7.59765625 C8.51497396,7.70182292 8.5703125,7.82682292 8.5703125,7.97265625 C8.5703125,8.11588542 8.51497396,8.23893229 8.40429688,8.34179688 C8.29361979,8.44466146 8.15885417,8.49609375 8,8.49609375 C7.84375,8.49609375 7.7109375,8.44466146 7.6015625,8.34179688 C7.4921875,8.23893229 7.4375,8.11588542 7.4375,7.97265625 C7.4375,7.82682292 7.4921875,7.70182292 7.6015625,7.59765625 C7.7109375,7.49348958 7.84375,7.44140625 8,7.44140625 Z"
  319. Fill="Black" />
  320. </MenuItem.Icon>-->
  321. <MenuItem.Header>
  322. <TextBlock Name="MenuTimeDescendingText" Text="按时间倒序排列" />
  323. </MenuItem.Header>
  324. </MenuItem>
  325. </MenuItem>
  326. <MenuItem
  327. Name="MenuImport"
  328. Command="{Binding ImportCommentsCommand}"
  329. Header="{Binding T_Import}" />
  330. <MenuItem
  331. Name="MenuExport"
  332. Command="{Binding ExportCommentsCommand}"
  333. Header="{Binding T_Export}" />
  334. <MenuItem
  335. Name="MenuDeleteAll"
  336. Command="{Binding DeleteAllCommand}"
  337. Header="{Binding T_DeleteAll}" />
  338. </ContextMenu>
  339. </Button.ContextMenu>
  340. </Button>
  341. </StackPanel>
  342. </Grid>
  343. </Border>
  344. </Grid>
  345. </UserControl>