ContextMenuStyle.xaml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  3. <!--快捷工具展开收缩-->
  4. <ContextMenu x:Key="ExpendToolsContextMenu" FontSize="14">
  5. <ContextMenu.ItemContainerStyle>
  6. <Style TargetType="MenuItem">
  7. <Setter Property="Padding" Value="0,7,0,7"/>
  8. <Setter Property="VerticalContentAlignment" Value="Center"/>
  9. </Style>
  10. </ContextMenu.ItemContainerStyle>
  11. <MenuItem Name="ExpendMenuItem" Header="展开" IsEnabled="True">
  12. <MenuItem.Icon>
  13. <Path Fill="Black"
  14. Data="M5.24031 1.5H0.5V14.5H15.5V4H7.24031L5.24031 1.5ZM1.5 13.5V2.5H4.75969L6.75969 5H14.5V13.5H1.5ZM4 7.5H12V6.5H4V7.5Z">
  15. <Path.RenderTransform>
  16. <TranslateTransform X="3.0000" Y="0"/>
  17. </Path.RenderTransform>
  18. </Path>
  19. </MenuItem.Icon>
  20. </MenuItem>
  21. </ContextMenu>
  22. <ContextMenu x:Key="SelectAnnotContextMenu" FontSize="14">
  23. <ContextMenu.ItemContainerStyle>
  24. <Style TargetType="MenuItem">
  25. <Setter Property="Padding" Value="0,7,0,7"/>
  26. <Setter Property="VerticalContentAlignment" Value="Center"/>
  27. </Style>
  28. </ContextMenu.ItemContainerStyle>
  29. <MenuItem Name="CutAnnotMenuItem" Header="剪切" IsEnabled="True">
  30. <MenuItem.Icon>
  31. <Path Fill="Black"
  32. Data="M5.24031 1.5H0.5V14.5H15.5V4H7.24031L5.24031 1.5ZM1.5 13.5V2.5H4.75969L6.75969 5H14.5V13.5H1.5ZM4 7.5H12V6.5H4V7.5Z">
  33. <Path.RenderTransform>
  34. <TranslateTransform X="3.0000" Y="0"/>
  35. </Path.RenderTransform>
  36. </Path>
  37. </MenuItem.Icon>
  38. </MenuItem>
  39. <MenuItem Name="CopyAnnotMenuItem" Header="复制" IsEnabled="True">
  40. <MenuItem.Icon>
  41. <Path Fill="Black"
  42. Data="M5.24031 1.5H0.5V14.5H15.5V4H7.24031L5.24031 1.5ZM1.5 13.5V2.5H4.75969L6.75969 5H14.5V13.5H1.5ZM4 7.5H12V6.5H4V7.5Z">
  43. <Path.RenderTransform>
  44. <TranslateTransform X="3.0000" Y="0"/>
  45. </Path.RenderTransform>
  46. </Path>
  47. </MenuItem.Icon>
  48. </MenuItem>
  49. <MenuItem Name="DeleteAnnotMenuItem" Header="删除" IsEnabled="True">
  50. <MenuItem.Icon>
  51. <Path Fill="Black"
  52. Data="M5.24031 1.5H0.5V14.5H15.5V4H7.24031L5.24031 1.5ZM1.5 13.5V2.5H4.75969L6.75969 5H14.5V13.5H1.5ZM4 7.5H12V6.5H4V7.5Z">
  53. <Path.RenderTransform>
  54. <TranslateTransform X="3.0000" Y="0"/>
  55. </Path.RenderTransform>
  56. </Path>
  57. </MenuItem.Icon>
  58. </MenuItem>
  59. <MenuItem Name="NoteAnnotMenuItem" Header="笔记" IsEnabled="True">
  60. <MenuItem.Icon>
  61. <Path Fill="Black"
  62. Data="M5.24031 1.5H0.5V14.5H15.5V4H7.24031L5.24031 1.5ZM1.5 13.5V2.5H4.75969L6.75969 5H14.5V13.5H1.5ZM4 7.5H12V6.5H4V7.5Z">
  63. <Path.RenderTransform>
  64. <TranslateTransform X="3.0000" Y="0"/>
  65. </Path.RenderTransform>
  66. </Path>
  67. </MenuItem.Icon>
  68. </MenuItem>
  69. </ContextMenu>
  70. </ResourceDictionary>