ContextMenuTextEditStyle.xaml 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  2. <Style x:Key="ContextMenuStyle" TargetType="{x:Type ContextMenu}">
  3. <Setter Property="SnapsToDevicePixels" Value="True" />
  4. <Setter Property="Grid.IsSharedSizeScope" Value="true" />
  5. <Setter Property="HasDropShadow" Value="True" />
  6. <Setter Property="Template">
  7. <Setter.Value>
  8. <ControlTemplate TargetType="{x:Type ContextMenu}">
  9. <Border Uid="Border_93">
  10. <Border.Style>
  11. <Style TargetType="{x:Type Border}">
  12. <Setter Property="Tag" Value="{DynamicResource {x:Static SystemParameters.DropShadowKey}}" />
  13. <Style.Triggers>
  14. <DataTrigger Binding="{Binding Tag, RelativeSource={RelativeSource Self}}" Value="True">
  15. <Setter Property="Effect">
  16. <Setter.Value>
  17. <DropShadowEffect
  18. BlurRadius="4"
  19. Opacity="0.8"
  20. ShadowDepth="1" />
  21. </Setter.Value>
  22. </Setter>
  23. </DataTrigger>
  24. </Style.Triggers>
  25. </Style>
  26. </Border.Style>
  27. <Border
  28. Uid="Border_50"
  29. Background="{TemplateBinding Background}"
  30. BorderBrush="{TemplateBinding BorderBrush}"
  31. BorderThickness="{TemplateBinding BorderThickness}">
  32. <ScrollViewer
  33. Uid="ScrollViewer_9"
  34. CanContentScroll="True"
  35. Style="{DynamicResource {ComponentResourceKey ResourceId=MenuScrollViewer,
  36. TypeInTargetAssembly={x:Type FrameworkElement}}}">
  37. <ItemsPresenter
  38. Uid="ItemsPresenter_5"
  39. KeyboardNavigation.DirectionalNavigation="Cycle"
  40. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  41. </ScrollViewer>
  42. </Border>
  43. </Border>
  44. </ControlTemplate>
  45. </Setter.Value>
  46. </Setter>
  47. </Style>
  48. <!-- TextEdit Right Menu Style -->
  49. <!-- 空白处 - 右键菜单 -->
  50. <ContextMenu
  51. x:Key="NoneMenu"
  52. Width="150"
  53. Background="#FFF8F8F8"
  54. Style="{StaticResource ContextMenuStyle}">
  55. <ContextMenu.ItemContainerStyle>
  56. <Style TargetType="MenuItem">
  57. <Setter Property="Padding" Value="-28,7,-80,7" />
  58. <Setter Property="VerticalContentAlignment" Value="Center" />
  59. <Style.Triggers>
  60. <Trigger Property="IsEnabled" Value="True">
  61. <Setter Property="Opacity" Value="1" />
  62. </Trigger>
  63. <Trigger Property="IsEnabled" Value="False">
  64. <Setter Property="Opacity" Value="0.5" />
  65. </Trigger>
  66. </Style.Triggers>
  67. </Style>
  68. </ContextMenu.ItemContainerStyle>
  69. <MenuItem Name="PasteNone">
  70. <MenuItem.Header>
  71. <Grid>
  72. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  73. <TextBlock Margin="26,0,0,0" Text="粘贴" />
  74. </Grid>
  75. </MenuItem.Header>
  76. </MenuItem>
  77. <MenuItem Name="AddTextNone">
  78. <MenuItem.Header>
  79. <Grid>
  80. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  81. <TextBlock Margin="26,0,0,0" Text="添加文本" />
  82. </Grid>
  83. </MenuItem.Header>
  84. </MenuItem>
  85. <MenuItem Name="AddImgNone">
  86. <MenuItem.Header>
  87. <Grid>
  88. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  89. <TextBlock Margin="26,0,0,0" Text="添加图像" />
  90. </Grid>
  91. </MenuItem.Header>
  92. </MenuItem>
  93. </ContextMenu>
  94. <!-- 选择文本框 - 右键菜单 -->
  95. <ContextMenu
  96. x:Key="SelectTextMenu"
  97. Width="150"
  98. Background="#FFF8F8F8"
  99. Style="{StaticResource ContextMenuStyle}">
  100. <ContextMenu.ItemContainerStyle>
  101. <Style TargetType="MenuItem">
  102. <Setter Property="Padding" Value="-28,7,-80,7" />
  103. <Setter Property="VerticalContentAlignment" Value="Center" />
  104. <Style.Triggers>
  105. <Trigger Property="IsEnabled" Value="True">
  106. <Setter Property="Opacity" Value="1" />
  107. </Trigger>
  108. <Trigger Property="IsEnabled" Value="False">
  109. <Setter Property="Opacity" Value="0.5" />
  110. </Trigger>
  111. </Style.Triggers>
  112. </Style>
  113. </ContextMenu.ItemContainerStyle>
  114. <MenuItem Name="EditSelectText">
  115. <MenuItem.Header>
  116. <Grid>
  117. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  118. <TextBlock Margin="26,0,0,0" Text="编辑" />
  119. </Grid>
  120. </MenuItem.Header>
  121. </MenuItem>
  122. <MenuItem Name="CopySelectText">
  123. <MenuItem.Header>
  124. <Grid>
  125. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  126. <TextBlock Margin="26,0,0,0" Text="复制" />
  127. </Grid>
  128. </MenuItem.Header>
  129. </MenuItem>
  130. <MenuItem Name="CutSelectText">
  131. <MenuItem.Header>
  132. <Grid>
  133. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  134. <TextBlock Margin="26,0,0,0" Text="剪切" />
  135. </Grid>
  136. </MenuItem.Header>
  137. </MenuItem>
  138. <MenuItem Name="PasteSelectText">
  139. <MenuItem.Header>
  140. <Grid>
  141. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  142. <TextBlock Margin="26,0,0,0" Text="粘贴" />
  143. </Grid>
  144. </MenuItem.Header>
  145. </MenuItem>
  146. <MenuItem Name="DeleteSelectText">
  147. <MenuItem.Header>
  148. <Grid>
  149. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  150. <TextBlock Margin="26,0,0,0" Text="删除" />
  151. </Grid>
  152. </MenuItem.Header>
  153. </MenuItem>
  154. <MenuItem Name="SortSelectText">
  155. <MenuItem.Header>
  156. <Grid>
  157. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  158. <TextBlock Margin="26,0,0,0" Text="排列" />
  159. </Grid>
  160. </MenuItem.Header>
  161. </MenuItem>
  162. </ContextMenu>
  163. <ContextMenu
  164. x:Key="SelectImgMenu"
  165. Width="150"
  166. Background="#FFF8F8F8"
  167. Style="{StaticResource ContextMenuStyle}">
  168. <ContextMenu.ItemContainerStyle>
  169. <Style TargetType="MenuItem">
  170. <Setter Property="Padding" Value="-28,7,-80,7" />
  171. <Setter Property="VerticalContentAlignment" Value="Center" />
  172. <Style.Triggers>
  173. <Trigger Property="IsEnabled" Value="True">
  174. <Setter Property="Opacity" Value="1" />
  175. </Trigger>
  176. <Trigger Property="IsEnabled" Value="False">
  177. <Setter Property="Opacity" Value="0.5" />
  178. </Trigger>
  179. </Style.Triggers>
  180. </Style>
  181. </ContextMenu.ItemContainerStyle>
  182. <MenuItem Name="CopySelectImg">
  183. <MenuItem.Header>
  184. <Grid>
  185. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  186. <TextBlock Margin="26,0,0,0" Text="复制" />
  187. </Grid>
  188. </MenuItem.Header>
  189. </MenuItem>
  190. <MenuItem Name="CutSelectImg">
  191. <MenuItem.Header>
  192. <Grid>
  193. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  194. <TextBlock Margin="26,0,0,0" Text="剪切" />
  195. </Grid>
  196. </MenuItem.Header>
  197. </MenuItem>
  198. <MenuItem Name="PasteSelectImg">
  199. <MenuItem.Header>
  200. <Grid>
  201. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  202. <TextBlock Margin="26,0,0,0" Text="粘贴" />
  203. </Grid>
  204. </MenuItem.Header>
  205. </MenuItem>
  206. <MenuItem Name="DeleteSelectImg">
  207. <MenuItem.Header>
  208. <Grid>
  209. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  210. <TextBlock Margin="26,0,0,0" Text="删除" />
  211. </Grid>
  212. </MenuItem.Header>
  213. </MenuItem>
  214. <MenuItem Name="CropSelectImg">
  215. <MenuItem.Header>
  216. <Grid>
  217. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  218. <TextBlock Margin="26,0,0,0" Text="裁剪" />
  219. </Grid>
  220. </MenuItem.Header>
  221. </MenuItem>
  222. <MenuItem Name="ReplaceSelectImg">
  223. <MenuItem.Header>
  224. <Grid>
  225. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  226. <TextBlock Margin="26,0,0,0" Text="替换" />
  227. </Grid>
  228. </MenuItem.Header>
  229. </MenuItem>
  230. <MenuItem Name="ExportSelectImg">
  231. <MenuItem.Header>
  232. <Grid>
  233. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  234. <TextBlock Margin="26,0,0,0" Text="导出" />
  235. </Grid>
  236. </MenuItem.Header>
  237. </MenuItem>
  238. </ContextMenu>
  239. <!-- 选中文本 - 右键菜单 -->
  240. <ContextMenu
  241. x:Key="SelectContentMenu"
  242. Width="150"
  243. Background="#FFF8F8F8"
  244. Style="{StaticResource ContextMenuStyle}">
  245. <ContextMenu.ItemContainerStyle>
  246. <Style TargetType="MenuItem">
  247. <Setter Property="Padding" Value="-28,7,-80,7" />
  248. <Setter Property="VerticalContentAlignment" Value="Center" />
  249. <Style.Triggers>
  250. <Trigger Property="IsEnabled" Value="True">
  251. <Setter Property="Opacity" Value="1" />
  252. </Trigger>
  253. <Trigger Property="IsEnabled" Value="False">
  254. <Setter Property="Opacity" Value="0.5" />
  255. </Trigger>
  256. </Style.Triggers>
  257. </Style>
  258. </ContextMenu.ItemContainerStyle>
  259. <MenuItem Name="CopySelectContent">
  260. <MenuItem.Header>
  261. <Grid>
  262. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  263. <TextBlock Margin="26,0,0,0" Text="复制" />
  264. </Grid>
  265. </MenuItem.Header>
  266. </MenuItem>
  267. <MenuItem Name="CutSelectContent">
  268. <MenuItem.Header>
  269. <Grid>
  270. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  271. <TextBlock Margin="26,0,0,0" Text="剪切" />
  272. </Grid>
  273. </MenuItem.Header>
  274. </MenuItem>
  275. <MenuItem Name="PasteSelectContent">
  276. <MenuItem.Header>
  277. <Grid>
  278. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  279. <TextBlock Margin="26,0,0,0" Text="粘贴" />
  280. </Grid>
  281. </MenuItem.Header>
  282. </MenuItem>
  283. <MenuItem Name="PasteMatchStyleSelectContent">
  284. <MenuItem.Header>
  285. <Grid>
  286. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  287. <TextBlock Margin="26,0,0,0" Text="粘贴并匹配样式" />
  288. </Grid>
  289. </MenuItem.Header>
  290. </MenuItem>
  291. <MenuItem Name="DeleteSelectContent">
  292. <MenuItem.Header>
  293. <Grid>
  294. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  295. <TextBlock Margin="26,0,0,0" Text="删除" />
  296. </Grid>
  297. </MenuItem.Header>
  298. </MenuItem>
  299. <MenuItem Name="AllSelectSelectContent">
  300. <MenuItem.Header>
  301. <Grid>
  302. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  303. <TextBlock Margin="26,0,0,0" Text="全部选定" />
  304. </Grid>
  305. </MenuItem.Header>
  306. </MenuItem>
  307. </ContextMenu>
  308. <!-- 文本为编辑状态,且未选中文本内容时,右键菜单项 -->
  309. <ContextMenu
  310. x:Key="NoneSelectContentMenu"
  311. Width="150"
  312. Background="#FFF8F8F8"
  313. Style="{StaticResource ContextMenuStyle}">
  314. <ContextMenu.ItemContainerStyle>
  315. <Style TargetType="MenuItem">
  316. <Setter Property="Padding" Value="-28,7,-80,7" />
  317. <Setter Property="VerticalContentAlignment" Value="Center" />
  318. <Style.Triggers>
  319. <Trigger Property="IsEnabled" Value="True">
  320. <Setter Property="Opacity" Value="1" />
  321. </Trigger>
  322. <Trigger Property="IsEnabled" Value="False">
  323. <Setter Property="Opacity" Value="0.5" />
  324. </Trigger>
  325. </Style.Triggers>
  326. </Style>
  327. </ContextMenu.ItemContainerStyle>
  328. <MenuItem Name="AllSelectNoneSelectContentMenu">
  329. <MenuItem.Header>
  330. <Grid>
  331. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  332. <TextBlock Margin="26,0,0,0" Text="全部选定" />
  333. </Grid>
  334. </MenuItem.Header>
  335. </MenuItem>
  336. <MenuItem Name="PasteNoneSelectContentMenu">
  337. <MenuItem.Header>
  338. <Grid>
  339. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  340. <TextBlock Margin="26,0,0,0" Text="粘贴" />
  341. </Grid>
  342. </MenuItem.Header>
  343. </MenuItem>
  344. <MenuItem Name="PasteMatchStyleNoneSelectContentMenu">
  345. <MenuItem.Header>
  346. <Grid>
  347. <Path Data="M11.3081693,0.5 L12.1518307,1.04661201 L7.592,8.341 L8.66141901,10.0529238 C9.01895648,9.09225685 9.93114491,8.4093224 11,8.4093224 C12.3807119,8.4093224 13.5,9.5489094 13.5,10.9546612 C13.5,12.360413 12.3807119,13.5 11,13.5 C10.0611159,13.5 9.24311419,12.973055 8.81573481,12.1937968 L7,9.289 L5.172,12.213 L5.10186464,12.3333197 C4.64705902,13.0515502 3.86209624,13.5 3,13.5 C1.61928813,13.5 0.5,12.360413 0.5,10.9546612 C0.5,9.5489094 1.61928813,8.4093224 3,8.4093224 C4.06885509,8.4093224 4.98104352,9.09225685 5.33858099,10.0529238 L6.407,8.341 L1.84816926,1.04661201 L2.69183074,0.5 L7,7.393 L11.3081693,0.5 Z M11,9.42745792 C10.1715729,9.42745792 9.5,10.1112101 9.5,10.9546612 C9.5,11.7981123 10.1715729,12.4818645 11,12.4818645 C11.8284271,12.4818645 12.5,11.7981123 12.5,10.9546612 C12.5,10.1112101 11.8284271,9.42745792 11,9.42745792 Z M3,9.42745792 C2.17157288,9.42745792 1.5,10.1112101 1.5,10.9546612 C1.5,11.7981123 2.17157288,12.4818645 3,12.4818645 C3.5545817,12.4818645 4.05535119,12.1731728 4.31698134,11.6865091 C4.43652752,11.4641388 4.5,11.2146546 4.5,10.9546612 C4.5,10.1112101 3.82842712,9.42745792 3,9.42745792 Z" Fill="Black" />
  348. <TextBlock Margin="26,0,0,0" Text="粘贴并匹配样式" />
  349. </Grid>
  350. </MenuItem.Header>
  351. </MenuItem>
  352. </ContextMenu>
  353. </ResourceDictionary>