SnapshotMenu.xaml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <UserControl
  2. x:Class="ComPDFKit.Controls.Snapshot.SnapshotMenu"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ComPDFKit.Controls.Snapshot"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. d:DesignHeight="450"
  9. d:DesignWidth="800"
  10. mc:Ignorable="d">
  11. <UserControl.Resources>
  12. <ResourceDictionary>
  13. <ResourceDictionary.MergedDictionaries>
  14. <ResourceDictionary Source="../Asset/Styles/ButtonStyle.xaml"></ResourceDictionary>
  15. </ResourceDictionary.MergedDictionaries>
  16. </ResourceDictionary>
  17. </UserControl.Resources>
  18. <Grid
  19. x:Name="SnapGrid"
  20. Height="40"
  21. HorizontalAlignment="Center"
  22. Background="#FFF8F8F8" Margin="0,10">
  23. <Grid.ColumnDefinitions>
  24. <ColumnDefinition Width="13*"/>
  25. <ColumnDefinition Width="47*"/>
  26. </Grid.ColumnDefinitions>
  27. <StackPanel Orientation="Horizontal" Grid.ColumnSpan="2">
  28. <Button
  29. x:Name="ReSnapshotBtn"
  30. Width="40"
  31. Height="40"
  32. Background="#FFF8F8F8"
  33. Click="Button_ReSnapshot"
  34. Tag="ReSnapshot"
  35. Style="{StaticResource TitleBarButtonStyle}">
  36. <Button.Content>
  37. <Path Data="M5.93933983,9.3890873 L5.23223305,10.0961941 L0.636038969,5.5 L5.23223305,0.903805922 L5.93933983,1.6109127 L2.54903897,4.99980592 L9.25,5 C12.4256373,5 15,7.57436269 15,10.75 C15,13.8517853 12.5439828,16.379937 9.47055571,16.4958479 L9.25,16.5 L1.5,16.5 L1.5,15.5 L9.25,15.5 C11.8733526,15.5 14,13.3733526 14,10.75 C14,8.19951834 11.9898587,6.11853034 9.467428,6.00488786 L9.25,6 L2.54903897,5.99980592 L5.93933983,9.3890873 Z" Fill="#000000" />
  38. </Button.Content>
  39. </Button>
  40. <Button
  41. x:Name="SnapshotPrintBtn"
  42. Width="40"
  43. Height="40"
  44. Background="#FFF8F8F8"
  45. Click="Button_PrintSnapshot"
  46. Tag="SnapshotPrint"
  47. Style="{StaticResource TitleBarButtonStyle}">
  48. <Button.Content>
  49. <Path Data="M12,0 L12,6 L14.5,6 C15.2796961,6 15.9204487,6.59488808 15.9931334,7.35553999 L16,7.5 L16,14 L12,14 L12,16 L4,16 L3.999,14 L0,14 L0,7.5 C0,6.72030388 0.594888083,6.07955132 1.35553999,6.00686658 L1.5,6 L3.999,6 L4,0 L12,0 Z M11,11 L5,11 L5,15 L11,15 L11,11 Z M14.5,7 L1.5,7 C1.25454011,7 1.05039163,7.17687516 1.00805567,7.41012437 L1,7.5 L1,13 L3.999,13 L4,10 L12,10 L12,13 L15,13 L15,7.5 C15,7.25454011 14.8231248,7.05039163 14.5898756,7.00805567 L14.5,7 Z M3,8 L3,9 L2,9 L2,8 L3,8 Z M11,1 L5,1 L4.999,6 L11,6 L11,1 Z" Fill="#000000" />
  50. </Button.Content>
  51. </Button>
  52. <Button
  53. x:Name="SnapshotCorpBtn"
  54. Width="40"
  55. Height="40"
  56. Background="#FFF8F8F8"
  57. Click="Button_SnapshotCorp"
  58. Tag="SnapshotCorp"
  59. Style="{StaticResource TitleBarButtonStyle}">
  60. <Button.Content>
  61. <Grid>
  62. <Path Data="M4 -4.57764e-05V11.9999H15.9999V12.9999H3V-4.57764e-05H4Z" Fill="#000000" />
  63. <Path Data="M6 3.00003H13V9.99999H12V4.00003H6V3.00003Z" Fill="#000000" />
  64. <Path Data="M0 3.00003H3.99998V4.00003H0V3.00003Z" Fill="#000000" />
  65. <Path Data="M13 12V16H12V12H13Z" Fill="#000000" />
  66. </Grid>
  67. </Button.Content>
  68. </Button>
  69. <Button
  70. x:Name="SnapshotSaveBtn"
  71. Width="40"
  72. Height="40"
  73. Background="#FFF8F8F8"
  74. Click="Button_SnapshotSave"
  75. Tag="SnapshotSave"
  76. Style="{StaticResource TitleBarButtonStyle}">
  77. <Button.Content>
  78. <Path Data="M3,11 L3,14 L13,14 L13,11 L14,11 L14,15 L2,15 L2,11 L3,11 Z M8,1.000253 L12.5961941,5.596447 L11.8890873,6.303553 L8.5,2.914253 L8.5,12 L7.5,12 L7.5,2.912253 L4.1109127,6.303553 L3.40380592,5.596447 L8,1.000253 Z" Fill="#000000" />
  79. </Button.Content>
  80. </Button>
  81. <Button
  82. x:Name="SnapshotCloseBtn"
  83. Width="40"
  84. Height="40"
  85. Background="#FFF8F8F8"
  86. Click="Button_SnapshotClose"
  87. Tag="SnapshotClose"
  88. Style="{StaticResource TitleBarButtonStyle}">
  89. <Button.Content>
  90. <Path Data="M11.4852814,3.57106781 L11.4850678,10.4850678 L18.3994949,10.4852814 L18.3994949,11.4852814 L11.4850678,11.4850678 L11.4852814,18.3994949 L10.4852814,18.3994949 L10.4850678,11.4850678 L3.57106781,11.4852814 L3.57106781,10.4852814 L10.4850678,10.4850678 L10.4852814,3.57106781 L11.4852814,3.57106781 Z" Fill="#000000">
  91. <Path.RenderTransform>
  92. <TransformGroup>
  93. <RotateTransform CenterX="8" CenterY="8">
  94. <RotateTransform.Angle>45</RotateTransform.Angle>
  95. </RotateTransform>
  96. <TranslateTransform>
  97. <TranslateTransform.Y>-2</TranslateTransform.Y>
  98. </TranslateTransform>
  99. </TransformGroup>
  100. </Path.RenderTransform>
  101. </Path>
  102. </Button.Content>
  103. </Button>
  104. <Button
  105. x:Name="SnapshotCopyBtn"
  106. Width="40"
  107. Height="40"
  108. Background="#FFF8F8F8"
  109. Click="Button_SnapshotCopy"
  110. Tag="SnapCopyDone"
  111. Style="{StaticResource TitleBarButtonStyle}">
  112. <Button.Content>
  113. <Polygon Fill="#000000" Points="15.5992424 4.59619408 16.3063492 5.30330086 5.69974747 15.9099026 0.396446609 10.6066017 1.10355339 9.89949494 5.7 14.496" />
  114. </Button.Content>
  115. </Button>
  116. <Button
  117. x:Name="SnapshotCorpBtn2"
  118. Width="40"
  119. Height="40"
  120. Background="#FFF8F8F8"
  121. Click="Button_SnapshotCorp"
  122. Tag="SnapshotCorp"
  123. Visibility="Collapsed"
  124. Style="{StaticResource TitleBarButtonStyle}">
  125. <Button.Content>
  126. <Grid>
  127. <Path Data="M4 -4.57764e-05V11.9999H15.9999V12.9999H3V-4.57764e-05H4Z" Fill="#000000" />
  128. <Path Data="M6 3.00003H13V9.99999H12V4.00003H6V3.00003Z" Fill="#000000" />
  129. <Path Data="M0 3.00003H3.99998V4.00003H0V3.00003Z" Fill="#000000" />
  130. <Path Data="M13 12V16H12V12H13Z" Fill="#000000" />
  131. </Grid>
  132. </Button.Content>
  133. </Button>
  134. </StackPanel>
  135. </Grid>
  136. </UserControl>