SnapshotEditMenu.xaml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <UserControl
  2. x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.SnapshotEditMenu"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:AnnotPanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:prism="http://prismlibrary.com/"
  10. d:DataContext="{d:DesignInstance Type=AnnotPanel:SnapshotEditMenuViewModel}"
  11. d:DesignHeight="450"
  12. d:DesignWidth="800"
  13. prism:ViewModelLocator.AutoWireViewModel="True"
  14. Background="#FFF8F8F8"
  15. mc:Ignorable="d">
  16. <Grid>
  17. <StackPanel Orientation="Vertical">
  18. <Button
  19. x:Name="BtnSnapCopy"
  20. Height="40"
  21. Padding="5"
  22. HorizontalContentAlignment="Left"
  23. Background="#FFF8F8F8"
  24. BorderThickness="0"
  25. Command="{Binding SnapCopyCommand}"
  26. FontSize="14"
  27. Tag="ReSnapCopy">
  28. <Button.Content>
  29. 复制
  30. </Button.Content>
  31. </Button>
  32. <Button
  33. x:Name="BtnSnapExport"
  34. Height="40"
  35. Padding="5"
  36. HorizontalContentAlignment="Left"
  37. Background="#FFF8F8F8"
  38. BorderThickness="0"
  39. Click="BtnSnapExport_Click"
  40. FontSize="14"
  41. Initialized="BtnSnapExport_Initialized"
  42. Tag="SnapExport">
  43. <Button.Content>
  44. <StackPanel Orientation="Horizontal">
  45. <TextBlock Width="160">导出</TextBlock>
  46. <Path
  47. Margin="0,0,0,0"
  48. Data="M7.56438 6.49996L3.59473 10.4696L4.65539 11.5303L9.15537 7.03029C9.44826 6.7374 9.44826 6.26252 9.15537 5.96963L4.65539 1.46964L3.59473 2.5303L7.56438 6.49996Z"
  49. Fill="#616469" />
  50. </StackPanel>
  51. </Button.Content>
  52. <Button.ContextMenu>
  53. <ContextMenu Name="MenuExport" Placement="Right">
  54. <MenuItem
  55. Name="MenuExportPNG"
  56. Command="{Binding ExportPNGCommand}"
  57. Header="PNG" />
  58. <MenuItem
  59. Name="MenuExportJPG"
  60. Command="{Binding ExportJPGCommand}"
  61. Header="JPG" />
  62. <MenuItem
  63. Name="MenuExportPDF"
  64. Command="{Binding ExportPDFCommand}"
  65. Header="PDF" />
  66. </ContextMenu>
  67. </Button.ContextMenu>
  68. </Button>
  69. <Button
  70. x:Name="BtnSnapCropping"
  71. Height="40"
  72. Padding="5"
  73. HorizontalContentAlignment="Left"
  74. Background="#FFF8F8F8"
  75. BorderThickness="0"
  76. Command="{Binding CroppingCommand}"
  77. FontSize="14"
  78. Tag="SnapCropping">
  79. <Button.Content>
  80. 裁剪
  81. </Button.Content>
  82. </Button>
  83. <Button
  84. x:Name="BtnSnapZoom"
  85. Height="40"
  86. Padding="5"
  87. HorizontalContentAlignment="Left"
  88. Background="#FFF8F8F8"
  89. BorderThickness="0"
  90. FontSize="14"
  91. Tag="SnapZoom">
  92. <Button.Content>
  93. 缩放至所选区域
  94. </Button.Content>
  95. </Button>
  96. <Button
  97. x:Name="BtnSnapPrint"
  98. Height="40"
  99. Padding="5"
  100. HorizontalContentAlignment="Left"
  101. Background="#FFF8F8F8"
  102. BorderThickness="0"
  103. Command="{Binding PrintCommand}"
  104. FontSize="14"
  105. Tag="SnapPrint">
  106. <Button.Content>
  107. 打印
  108. </Button.Content>
  109. </Button>
  110. </StackPanel>
  111. </Grid>
  112. </UserControl>