ConverterBarContent.xaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <UserControl
  2. x:Class="PDF_Master.Views.Tools.ConverterBarContent"
  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:PDF_Master.ViewModels.Tools"
  7. xmlns:prism="http://prismlibrary.com/"
  8. prism:ViewModelLocator.AutoWireViewModel="True">
  9. <UserControl.Resources>
  10. <ResourceDictionary>
  11. <ResourceDictionary.MergedDictionaries>
  12. <ResourceDictionary Source="../../Styles/CustomBtnStyle.xaml" />
  13. </ResourceDictionary.MergedDictionaries>
  14. </ResourceDictionary>
  15. </UserControl.Resources>
  16. <Grid>
  17. <Border
  18. x:Name="ToolsBorder"
  19. Height="39"
  20. BorderBrush="#1A000000"
  21. BorderThickness="0,1,0,1">
  22. <WrapPanel Height="28" HorizontalAlignment="Center">
  23. <Button
  24. Name="ConverterWordBtn"
  25. Width="79"
  26. Height="28"
  27. Command="{Binding ToConverterCommand}"
  28. CommandParameter="{Binding ElementName=ConverterWordBtn}"
  29. Style="{StaticResource InsideBarBtnStyle}">
  30. <StackPanel Margin="0,0,0,0" Orientation="Horizontal">
  31. <StackPanel Margin="0,0,6,0">
  32. <Grid Width="20" Height="20">
  33. <Path Data="M4 18H16V6.74847L11.8671 2H4V18ZM4 0C2.89543 0 2 0.895431 2 2V18C2 19.1046 2.89543 20 4 20H16C17.1046 20 18 19.1046 18 18V6.74847C18 6.26584 17.8255 5.79948 17.5086 5.43542L13.3757 0.686951C12.9958 0.250541 12.4456 0 11.8671 0H4Z" Fill="#273C62" />
  34. <Path Data="M7.10449 15H8.79395L9.95117 10.6885H10.0391L11.2158 15H12.8955L14.7363 7.9541H12.8906L11.9678 12.6221H11.8799L10.7129 7.9541H9.27734L8.14941 12.6221H8.06152L7.12402 7.9541H5.26367L7.10449 15Z" Fill="#94989C" />
  35. </Grid>
  36. </StackPanel>
  37. <TextBlock
  38. Width="47"
  39. Height="16"
  40. HorizontalAlignment="Center"
  41. VerticalAlignment="Center"
  42. FontFamily="Segoe UI"
  43. FontSize="12"
  44. Text="To Word" />
  45. </StackPanel>
  46. </Button>
  47. <Button
  48. Name="ConverterExcelBtn"
  49. Width="79"
  50. Height="28"
  51. Margin="6,0,0,0"
  52. Command="{Binding ToConverterCommand}"
  53. CommandParameter="{Binding ElementName=ConverterExcelBtn}"
  54. Style="{StaticResource InsideBarBtnStyle}">
  55. <StackPanel Margin="0,0,0,0" Orientation="Horizontal">
  56. <StackPanel Margin="0,0,6,0">
  57. <Grid Width="20" Height="20">
  58. <Path Data="M4 18H16V6.74847L11.8671 2H4V18ZM4 0C2.89543 0 2 0.895431 2 2V18C2 19.1046 2.89543 20 4 20H16C17.1046 20 18 19.1046 18 18V6.74847C18 6.26584 17.8255 5.79948 17.5086 5.43542L13.3757 0.686951C12.9958 0.250541 12.4456 0 11.8671 0H4Z" Fill="#273C62" />
  59. <Path Data="M6.64062 15H8.5498L10.3125 12.0312L9.12109 12.7148H9.95117L11.3232 15H13.335L10.6934 10.8105L11.1133 12.2803V11.4502L13.3545 7.9541H11.3623L9.70215 11.0449L10.8594 10.3369H10.0293L8.74023 7.9541H6.64062L8.78906 11.4307V12.2607L9.19922 10.7861L6.64062 15Z" Fill="#94989C" />
  60. </Grid>
  61. </StackPanel>
  62. <TextBlock
  63. Width="47"
  64. Height="16"
  65. HorizontalAlignment="Center"
  66. VerticalAlignment="Center"
  67. FontFamily="Segoe UI"
  68. FontSize="12"
  69. Text="To Excel" />
  70. </StackPanel>
  71. </Button>
  72. <Button
  73. Name="ConverterPPTBtn"
  74. Width="79"
  75. Height="28"
  76. Margin="6,0,0,0"
  77. Command="{Binding ToConverterCommand}"
  78. CommandParameter="{Binding ElementName=ConverterPPTBtn}"
  79. Style="{StaticResource InsideBarBtnStyle}">
  80. <StackPanel Margin="0,0,0,0" Orientation="Horizontal">
  81. <StackPanel Margin="0,0,6,0">
  82. <Grid Width="20" Height="20">
  83. <Path Data="M4 18H16V6.74847L11.8671 2H4V18ZM4 0C2.89543 0 2 0.895431 2 2V18C2 19.1046 2.89543 20 4 20H16C17.1046 20 18 19.1046 18 18V6.74847C18 6.26584 17.8255 5.79948 17.5086 5.43542L13.3757 0.686951C12.9958 0.250541 12.4456 0 11.8671 0H4Z" Fill="#273C62" />
  84. <Path Data="M8.25684 12.9395H10.3955C10.9196 12.9395 11.3753 12.8385 11.7627 12.6367C12.1501 12.4316 12.4495 12.1436 12.6611 11.7725C12.876 11.3981 12.9834 10.9603 12.9834 10.459V10.4492C12.9834 9.94466 12.876 9.50684 12.6611 9.13574C12.4495 8.76139 12.1501 8.47168 11.7627 8.2666C11.3753 8.05827 10.9196 7.9541 10.3955 7.9541H8.25684V9.33105H9.96094C10.3418 9.33105 10.638 9.42546 10.8496 9.61426C11.0645 9.80306 11.1719 10.0814 11.1719 10.4492V10.459C11.1719 10.8236 11.0645 11.1019 10.8496 11.2939C10.638 11.486 10.3418 11.582 9.96094 11.582H8.25684V12.9395ZM7.3584 15H9.15039V7.9541H7.3584V15Z" Fill="#94989C" />
  85. </Grid>
  86. </StackPanel>
  87. <TextBlock
  88. Width="47"
  89. Height="16"
  90. HorizontalAlignment="Center"
  91. VerticalAlignment="Center"
  92. FontFamily="Segoe UI"
  93. FontSize="12"
  94. Text="To PPT" />
  95. </StackPanel>
  96. </Button>
  97. <Button
  98. Name="ConverterRTFBtn"
  99. Width="79"
  100. Height="28"
  101. Margin="6,0,0,0"
  102. Command="{Binding ToConverterCommand}"
  103. CommandParameter="{Binding ElementName=ConverterRTFBtn}"
  104. Style="{StaticResource InsideBarBtnStyle}">
  105. <StackPanel Margin="0,0,0,0" Orientation="Horizontal">
  106. <StackPanel Margin="0,0,6,0">
  107. <Grid Width="20" Height="20">
  108. <Path Data="M4 18H16V6.74847L11.8671 2H4V18ZM4 0C2.89543 0 2 0.895431 2 2V18C2 19.1046 2.89543 20 4 20H16C17.1046 20 18 19.1046 18 18V6.74847C18 6.26584 17.8255 5.79948 17.5086 5.43542L13.3757 0.686951C12.9958 0.250541 12.4456 0 11.8671 0H4Z" Fill="#273C62" />
  109. <Path Data="M7.24609 15H9.03809V12.5391H9.88281C9.89583 12.5391 9.90885 12.5391 9.92188 12.5391C9.93815 12.5391 9.9528 12.5391 9.96582 12.5391L11.1719 15H13.1836L11.7773 12.2705C12.1615 12.1012 12.4577 11.8359 12.666 11.4746C12.8743 11.1133 12.9785 10.7178 12.9785 10.2881V10.2783C12.9785 9.79329 12.876 9.37826 12.6709 9.0332C12.4658 8.6849 12.1647 8.41797 11.7676 8.23242C11.3737 8.04688 10.887 7.9541 10.3076 7.9541H7.24609V15ZM9.03809 11.3086V9.30664H10.0977C10.4199 9.30664 10.6755 9.39941 10.8643 9.58496C11.0531 9.76725 11.1475 10.0065 11.1475 10.3027V10.3125C11.1475 10.6185 11.0547 10.861 10.8691 11.04C10.6836 11.2191 10.4297 11.3086 10.1074 11.3086H9.03809Z" Fill="#94989C" />
  110. </Grid>
  111. </StackPanel>
  112. <TextBlock
  113. Width="47"
  114. Height="16"
  115. HorizontalAlignment="Center"
  116. VerticalAlignment="Center"
  117. FontFamily="Segoe UI"
  118. FontSize="12"
  119. Text="To RTF" />
  120. </StackPanel>
  121. </Button>
  122. <Button
  123. Name="ConverterCSVBtn"
  124. Width="79"
  125. Height="28"
  126. Margin="6,0,0,0"
  127. Command="{Binding ToConverterCommand}"
  128. CommandParameter="{Binding ElementName=ConverterCSVBtn}"
  129. Style="{StaticResource InsideBarBtnStyle}">
  130. <StackPanel Margin="0,0,0,0" Orientation="Horizontal">
  131. <StackPanel Margin="0,0,6,0">
  132. <Grid Width="20" Height="20">
  133. <Path Data="M4 18H16V6.74847L11.8671 2H4V18ZM4 0C2.89543 0 2 0.895431 2 2V18C2 19.1046 2.89543 20 4 20H16C17.1046 20 18 19.1046 18 18V6.74847C18 6.26584 17.8255 5.79948 17.5086 5.43542L13.3757 0.686951C12.9958 0.250541 12.4456 0 11.8671 0H4Z" Fill="#273C62" />
  134. <Path Data="M10.1318 15.1904C10.7373 15.1904 11.2695 15.0765 11.7285 14.8486C12.1908 14.6208 12.5586 14.3066 12.832 13.9062C13.1087 13.5059 13.2666 13.0436 13.3057 12.5195L13.3105 12.4365H11.582L11.5723 12.4951C11.5332 12.736 11.4486 12.9476 11.3184 13.1299C11.1914 13.3122 11.027 13.4538 10.8252 13.5547C10.6266 13.6556 10.3971 13.7061 10.1367 13.7061C9.80794 13.7061 9.52474 13.6165 9.28711 13.4375C9.05273 13.2552 8.87044 12.998 8.74023 12.666C8.61328 12.3307 8.5498 11.9336 8.5498 11.4746V11.4648C8.5498 11.0059 8.61328 10.612 8.74023 10.2832C8.87044 9.95117 9.05273 9.69564 9.28711 9.5166C9.52474 9.33757 9.80632 9.24805 10.1318 9.24805C10.389 9.24805 10.6201 9.30176 10.8252 9.40918C11.0303 9.5166 11.1979 9.66471 11.3281 9.85352C11.4583 10.0423 11.5397 10.2588 11.5723 10.5029L11.5771 10.5469H13.3057L13.3008 10.459C13.2682 9.93815 13.112 9.47591 12.832 9.07227C12.5521 8.66536 12.1794 8.34635 11.7139 8.11523C11.2516 7.88086 10.7243 7.76367 10.1318 7.76367C9.42546 7.76367 8.81836 7.91341 8.31055 8.21289C7.80273 8.51237 7.41048 8.9388 7.13379 9.49219C6.86035 10.0456 6.72363 10.7048 6.72363 11.4697V11.4795C6.72363 12.2445 6.86035 12.9053 7.13379 13.4619C7.41048 14.0153 7.80273 14.4417 8.31055 14.7412C8.82161 15.0407 9.42871 15.1904 10.1318 15.1904Z" Fill="#94989C" />
  135. </Grid>
  136. </StackPanel>
  137. <TextBlock
  138. Width="47"
  139. Height="16"
  140. HorizontalAlignment="Center"
  141. VerticalAlignment="Center"
  142. FontFamily="Segoe UI"
  143. FontSize="12"
  144. Text="To CSV" />
  145. </StackPanel>
  146. </Button>
  147. <Button
  148. Name="ConverterHTMLBtn"
  149. Width="79"
  150. Height="28"
  151. Margin="6,0,0,0"
  152. Command="{Binding ToConverterCommand}"
  153. CommandParameter="{Binding ElementName=ConverterHTMLBtn}"
  154. Style="{StaticResource InsideBarBtnStyle}">
  155. <StackPanel Margin="0,0,0,0" Orientation="Horizontal">
  156. <StackPanel Margin="0,0,6,0">
  157. <Grid Width="20" Height="20">
  158. <Path Data="M4 18H16V6.74847L11.8671 2H4V18ZM4 0C2.89543 0 2 0.895431 2 2V18C2 19.1046 2.89543 20 4 20H16C17.1046 20 18 19.1046 18 18V6.74847C18 6.26584 17.8255 5.79948 17.5086 5.43542L13.3757 0.686951C12.9958 0.250541 12.4456 0 11.8671 0H4Z" Fill="#273C62" />
  159. <Path Data="M6.80176 15H8.59375V12.1582H11.4014V15H13.1934V7.9541H11.4014V10.7178H8.59375V7.9541H6.80176V15Z" Fill="#94989C" />
  160. </Grid>
  161. </StackPanel>
  162. <TextBlock
  163. Width="47"
  164. Height="16"
  165. HorizontalAlignment="Center"
  166. VerticalAlignment="Center"
  167. FontFamily="Segoe UI"
  168. FontSize="12"
  169. Text="To HTML" />
  170. </StackPanel>
  171. </Button>
  172. <Button
  173. Name="ConverterTextBtn"
  174. Width="79"
  175. Height="28"
  176. Margin="6,0,0,0"
  177. Command="{Binding ToConverterCommand}"
  178. CommandParameter="{Binding ElementName=ConverterTextBtn}"
  179. Style="{StaticResource InsideBarBtnStyle}">
  180. <StackPanel Margin="0,0,0,0" Orientation="Horizontal">
  181. <StackPanel Margin="0,0,6,0">
  182. <Grid Width="20" Height="20">
  183. <Path Data="M4 18H16V6.74847L11.8671 2H4V18ZM4 0C2.89543 0 2 0.895431 2 2V18C2 19.1046 2.89543 20 4 20H16C17.1046 20 18 19.1046 18 18V6.74847C18 6.26584 17.8255 5.79948 17.5086 5.43542L13.3757 0.686951C12.9958 0.250541 12.4456 0 11.8671 0H4Z" Fill="#273C62" />
  184. <Path Data="M9.10156 15H10.8936V9.39453H12.9248V7.9541H7.07031V9.39453H9.10156V15Z" Fill="#94989C" />
  185. </Grid>
  186. </StackPanel>
  187. <TextBlock
  188. Width="47"
  189. Height="16"
  190. HorizontalAlignment="Center"
  191. VerticalAlignment="Center"
  192. FontFamily="Segoe UI"
  193. FontSize="12"
  194. Text="To Text" />
  195. </StackPanel>
  196. </Button>
  197. <Button
  198. Name="ConverterImgBtn"
  199. Width="84"
  200. Height="28"
  201. Margin="6,0,0,0"
  202. Command="{Binding ToConverterCommand}"
  203. CommandParameter="{Binding ElementName=ConverterImgBtn}"
  204. Style="{StaticResource InsideBarBtnStyle}">
  205. <StackPanel Margin="0,0,0,0" Orientation="Horizontal">
  206. <StackPanel Margin="0,0,6,0">
  207. <Grid Width="20" Height="20">
  208. <Path Data="M4 18H16V6.74847L11.8671 2H4V18ZM4 0C2.89543 0 2 0.895431 2 2V18C2 19.1046 2.89543 20 4 20H16C17.1046 20 18 19.1046 18 18V6.74847C18 6.26584 17.8255 5.79948 17.5086 5.43542L13.3757 0.686951C12.9958 0.250541 12.4456 0 11.8671 0H4Z" Fill="#273C62" />
  209. <Path Data="M5.07835 14.1639L7.78045 9.21171C7.93442 8.93659 8.23465 8.92601 8.39632 9.20113L10.7828 12.4232L12.3994 10.746C12.5534 10.4815 12.8459 10.4921 12.9999 10.7566L14.9168 14.1427C15.1169 14.4919 14.9322 14.9998 14.6165 14.9998H5.38628C5.07065 15.0104 4.88589 14.5131 5.07835 14.1639Z" Fill="#94989C" />
  210. </Grid>
  211. </StackPanel>
  212. <TextBlock
  213. Width="52"
  214. Height="16"
  215. HorizontalAlignment="Center"
  216. VerticalAlignment="Center"
  217. FontFamily="Segoe UI"
  218. FontSize="12"
  219. Text="To Image" />
  220. </StackPanel>
  221. </Button>
  222. </WrapPanel>
  223. </Border>
  224. </Grid>
  225. </UserControl>