BottomToolContent.xaml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. <UserControl
  2. x:Class="PDF_Office.Views.BottomToolContent"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:cus="clr-namespace:PDF_Office.CustomControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  8. xmlns:local="clr-namespace:PDF_Office.Views"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:prism="http://prismlibrary.com/"
  11. xmlns:sys="clr-namespace:System;assembly=System"
  12. xmlns:viewmodels="clr-namespace:PDF_Office.ViewModels"
  13. d:DataContext="{d:DesignInstance Type=viewmodels:BottomToolContentViewModel}"
  14. d:DesignHeight="32"
  15. d:DesignWidth="1280"
  16. prism:ViewModelLocator.AutoWireViewModel="True"
  17. Background="{StaticResource color.sys.layout.mg}"
  18. BorderBrush="{StaticResource color.sys.layout.divider}"
  19. BorderThickness="0,1,0,0"
  20. mc:Ignorable="d">
  21. <UserControl.Resources />
  22. <Grid Height="32" Background="{StaticResource color.sys.layout.mg}">
  23. <Grid.ColumnDefinitions>
  24. <ColumnDefinition Width="*" />
  25. <ColumnDefinition Width="auto" MinWidth="{Binding ElementName=StkPnlCenter, Path=ActualWidth}" />
  26. <ColumnDefinition MinWidth="{Binding ElementName=StkPnlRight, Path=ActualWidth}" />
  27. </Grid.ColumnDefinitions>
  28. <StackPanel
  29. Name="StkPnlCenter"
  30. Grid.Column="1"
  31. HorizontalAlignment="Center"
  32. Orientation="Horizontal">
  33. <Button
  34. Width="24"
  35. Height="24"
  36. Margin="4"
  37. Command="{Binding FirstPageCommand}"
  38. Style="{StaticResource btn.selector}">
  39. <Path
  40. Width="24"
  41. Height="24"
  42. HorizontalAlignment="Center"
  43. VerticalAlignment="Center"
  44. Data="M5.25 6V18H6.75V6H5.25ZM12.8803 8.93035L10.5607 11.25H18.95V12.75H10.5607L12.8803 15.0696L11.8196 16.1303L8.21967 12.5303C7.92678 12.2374 7.92678 11.7626 8.21967 11.4697L11.8196 7.86969L12.8803 8.93035Z"
  45. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  46. </Button>
  47. <Button
  48. Width="24"
  49. Height="24"
  50. Margin="4"
  51. Command="{Binding PrePageCommand}"
  52. Style="{StaticResource btn.selector}">
  53. <Path
  54. Width="24"
  55. Height="24"
  56. HorizontalAlignment="Center"
  57. VerticalAlignment="Center"
  58. Data="M7.61046 11.2499L9.93011 8.93029L8.86945 7.86963L5.26947 11.4696C4.97658 11.7625 4.97658 12.2374 5.26947 12.5303L8.86945 16.1302L9.93011 15.0696L7.61047 12.7499H18.9998V11.2499H7.61046Z"
  59. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  60. </Button>
  61. <cus:TextBoxEx
  62. Width="57"
  63. Height="24"
  64. VerticalAlignment="Center"
  65. VerticalContentAlignment="Center"
  66. CornerRadius="4"
  67. FontSize="12"
  68. InputMethod.IsInputMethodEnabled="False"
  69. ShowClose="False"
  70. Text="{Binding CurrentPage}">
  71. <i:Interaction.Triggers>
  72. <i:EventTrigger EventName="KeyDown">
  73. <i:InvokeCommandAction Command="{Binding PageTextKeyDownCommand}" PassEventArgsToCommand="True" />
  74. </i:EventTrigger>
  75. <i:EventTrigger EventName="PreviewKeyDown">
  76. <i:InvokeCommandAction Command="{Binding PageTextPreviewKeyDownCommand}" PassEventArgsToCommand="True" />
  77. </i:EventTrigger>
  78. </i:Interaction.Triggers>
  79. </cus:TextBoxEx>
  80. <TextBlock
  81. Margin="8,0"
  82. VerticalAlignment="Center"
  83. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  84. Text="/" />
  85. <TextBlock
  86. MinWidth="13"
  87. VerticalAlignment="Center"
  88. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  89. Text="{Binding PageCount, StringFormat={}{0}}" />
  90. <Button
  91. Width="24"
  92. Height="24"
  93. Margin="4"
  94. Command="{Binding NextPageCommand}"
  95. Style="{StaticResource btn.selector}">
  96. <Path
  97. Width="24"
  98. Height="24"
  99. HorizontalAlignment="Center"
  100. VerticalAlignment="Center"
  101. Data="M16.3893 11.2499L5 11.2499V12.7499L16.3893 12.7499L14.0697 15.0696L15.1303 16.1302L18.7303 12.5303C19.0232 12.2374 19.0232 11.7625 18.7303 11.4696L15.1303 7.86963L14.0697 8.93029L16.3893 11.2499Z"
  102. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  103. </Button>
  104. <Button
  105. Width="24"
  106. Height="24"
  107. Margin="4"
  108. Command="{Binding LastPageCommand}"
  109. Style="{StaticResource btn.selector}">
  110. <Path
  111. Width="24"
  112. Height="24"
  113. HorizontalAlignment="Center"
  114. VerticalAlignment="Center"
  115. Data="M17.25 6V18H18.75V6H17.25ZM11.0697 15.0697L13.3893 12.75L5 12.75V11.25L13.3893 11.25L11.0697 8.93038L12.1303 7.86972L15.7303 11.4697C16.0232 11.7626 16.0232 12.2375 15.7303 12.5304L12.1303 16.1303L11.0697 15.0697Z"
  116. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  117. </Button>
  118. <Separator Margin="4,0,0,0" Style="{StaticResource VerticalSeparatorStyle}" />
  119. <Button
  120. Width="24"
  121. Height="24"
  122. Margin="8,0"
  123. Command="{Binding PreViewCommand}"
  124. IsEnabled="{Binding IsPreEnable}"
  125. Style="{StaticResource btn.selector}">
  126. <Path
  127. Width="16"
  128. Height="16"
  129. Data="M2.56067 7.28028L5.7803 4.06066L4.71964 3L0.21967 7.49997C-0.0732233 7.79286 -0.0732233 8.26774 0.21967 8.56063L4.71964 13.0606L5.7803 11.9999L2.56065 8.78028L15.75 8.78029V7.28029L2.56067 7.28028Z"
  130. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  131. </Button>
  132. <Button
  133. Width="24"
  134. Height="24"
  135. Command="{Binding NextViewCommnad}"
  136. IsEnabled="{Binding IsNextEnable}"
  137. Style="{StaticResource btn.selector}">
  138. <Path
  139. Width="16"
  140. Height="16"
  141. Data="M13.1893 8.78026L9.9697 11.9999L11.0304 13.0605L15.5303 8.56058C15.8232 8.26768 15.8232 7.79281 15.5303 7.49992L11.0304 2.99995L9.9697 4.06061L13.1894 7.28026L0 7.28026V8.78026L13.1893 8.78026Z"
  142. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  143. </Button>
  144. </StackPanel>
  145. <StackPanel
  146. x:Name="StkPnlRight"
  147. Grid.Column="2"
  148. HorizontalAlignment="Right"
  149. IsEnabled="{Binding RightPanelEnable}"
  150. Orientation="Horizontal">
  151. <ToggleButton
  152. Width="24"
  153. Height="24"
  154. Margin="4"
  155. Command="{Binding SetViewModeCommand}"
  156. IsChecked="{Binding IsContinue}"
  157. Style="{StaticResource SubToolbarTgb}">
  158. <Grid>
  159. <Path
  160. Width="24"
  161. Height="24"
  162. HorizontalAlignment="Center"
  163. VerticalAlignment="Center"
  164. Data="M7.5 4V8C7.5 8.13807 7.61193 8.25 7.75 8.25H16.25C16.3881 8.25 16.5 8.13807 16.5 8V4H18V8C18 8.9665 17.2165 9.75 16.25 9.75H7.75C6.7835 9.75 6 8.9665 6 8V4H7.5ZM6 13C6 12.0335 6.7835 11.25 7.75 11.25H12.8358C13.2999 11.25 13.745 11.4344 14.0732 11.7626L17.4874 15.1768C17.8156 15.505 18 15.9501 18 16.4142V20H16.5V16.75H13.25C12.8358 16.75 12.5 16.4142 12.5 16V12.75H7.75C7.61193 12.75 7.5 12.8619 7.5 13V20H6V13ZM14 13.8107V15.25H15.4393L14 13.8107Z"
  165. Fill="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ToggleButton}, Path=Foreground}" />
  166. </Grid>
  167. </ToggleButton>
  168. <Separator
  169. Width="1"
  170. Height="10"
  171. Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
  172. <RadioButton
  173. Width="24"
  174. Height="24"
  175. Margin="4"
  176. Command="{Binding SetViewModeCommand}"
  177. IsChecked="{Binding IsSingleView}"
  178. Style="{StaticResource StateBarRbt}">
  179. <Path
  180. Width="24"
  181. Height="24"
  182. HorizontalAlignment="Center"
  183. VerticalAlignment="Center"
  184. Data="M7.5 5.75C7.5 5.61193 7.61193 5.5 7.75 5.5H12.5V8.75C12.5 9.16421 12.8358 9.5 13.25 9.5H16.5V18.25C16.5 18.3881 16.3881 18.5 16.25 18.5H7.75C7.61193 18.5 7.5 18.3881 7.5 18.25V5.75ZM15.4393 8L14 6.56066V8H15.4393ZM7.75 4C6.7835 4 6 4.7835 6 5.75V18.25C6 19.2165 6.7835 20 7.75 20H16.25C17.2165 20 18 19.2165 18 18.25V9.16421C18 8.70008 17.8156 8.25497 17.4874 7.92678L14.0732 4.51256C13.745 4.18437 13.2999 4 12.8358 4H7.75Z"
  185. Fill="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=RadioButton}, Path=Foreground}" />
  186. </RadioButton>
  187. <RadioButton
  188. Width="24"
  189. Height="24"
  190. Margin="4"
  191. Command="{Binding SetViewModeCommand}"
  192. Cursor="Hand"
  193. IsChecked="{Binding IsDoubleView}"
  194. Style="{StaticResource StateBarRbt}">
  195. <Path
  196. Width="24"
  197. Height="24"
  198. HorizontalAlignment="Center"
  199. VerticalAlignment="Center"
  200. Data="M12.75 17.5V6H14.5V9.25C14.5 9.66421 14.8358 10 15.25 10H18.5V17.25C18.5 17.3881 18.3881 17.5 18.25 17.5H12.75ZM17.4393 8.5L16 7.06066V8.5H17.4393ZM18.25 19H12H5.75C4.7835 19 4 18.2165 4 17.25V9.25V6.25C4 5.2835 4.7835 4.5 5.75 4.5H8.75H12H14.8358C15.2999 4.5 15.745 4.68437 16.0732 5.01256L19.7803 8.71967C19.921 8.86032 20 9.05109 20 9.25V17.25C20 18.2165 19.2165 19 18.25 19ZM11.25 6V17.5H5.75C5.61193 17.5 5.5 17.3881 5.5 17.25V9.25V6.25C5.5 6.11193 5.61193 6 5.75 6H8.75H11.25Z"
  201. Fill="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=RadioButton}, Path=Foreground}" />
  202. </RadioButton>
  203. <RadioButton
  204. Width="24"
  205. Height="24"
  206. Margin="4"
  207. Command="{Binding SetViewModeCommand}"
  208. IsChecked="{Binding IsBookMode}"
  209. Style="{StaticResource StateBarRbt}">
  210. <Path
  211. Width="24"
  212. Height="24"
  213. HorizontalAlignment="Center"
  214. VerticalAlignment="Center"
  215. Data="M6.51514 11V5.5H8.58932L10.116 7.19217V11H6.51514ZM6.16514 4C5.53001 4 5.01514 4.51487 5.01514 5.15V11.35C5.01514 11.9851 5.53001 12.5 6.16514 12.5H10.466C11.1011 12.5 11.616 11.9851 11.616 11.35V7.05762C11.616 6.77304 11.5105 6.49857 11.3198 6.28728L9.5988 4.37966C9.38074 4.13796 9.07047 4 8.74494 4H6.16514ZM5.01514 14.4C5.01514 13.7649 5.53001 13.25 6.16514 13.25H8.9228H10.466C11.1011 13.25 11.616 13.7649 11.616 14.4V16.1538V20H10.116V16.1538V14.75H8.9228H6.51514V20H5.01514V14.4ZM12.4114 14.4C12.4114 13.7649 12.9262 13.25 13.5614 13.25H16.319H17.8622C18.4973 13.25 19.0122 13.7649 19.0122 14.4V16.1538V20H17.5122V16.1538V14.75H16.319H13.9114V20H12.4114V14.4Z"
  216. Fill="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=RadioButton}, Path=Foreground}" />
  217. </RadioButton>
  218. <Separator
  219. Width="1"
  220. Height="10"
  221. Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
  222. <ToggleButton
  223. Name="TbtnIsViewPanelOpen"
  224. Width="24"
  225. Height="24"
  226. Margin="4"
  227. Command="{Binding ShowViewModularCommand}"
  228. IsChecked="{Binding IsShowViewModular}"
  229. Style="{StaticResource SubToolbarTgb}">
  230. <Path Data="M1.5 13V3H7.25V13H1.5ZM8.75 13H14.5V3H8.75V13ZM0 2.5C0 1.94772 0.447715 1.5 1 1.5H15C15.5523 1.5 16 1.94772 16 2.5V13.5C16 14.0523 15.5523 14.5 15 14.5H1C0.447715 14.5 0 14.0523 0 13.5V2.5ZM3 6.25H6V7.75H3V6.25ZM6 9.25H3V10.75H6V9.25Z" Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  231. </ToggleButton>
  232. <Border
  233. Margin="12,0,16,0"
  234. HorizontalAlignment="Center"
  235. VerticalAlignment="Center"
  236. Background="{StaticResource color.field.bg.def}"
  237. BorderBrush="{StaticResource color.field.border.norm}"
  238. BorderThickness="1"
  239. CornerRadius="4">
  240. <StackPanel
  241. Height="20"
  242. FocusVisualStyle="{x:Null}"
  243. Orientation="Horizontal">
  244. <Grid>
  245. <ComboBox
  246. Width="72"
  247. Background="White"
  248. BorderThickness="0"
  249. FocusVisualStyle="{x:Null}"
  250. MaxDropDownHeight="510"
  251. SelectedIndex="{Binding SelectedIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
  252. <i:Interaction.Triggers>
  253. <i:EventTrigger EventName="SelectionChanged">
  254. <i:InvokeCommandAction Command="{Binding SelectionChangedCommand}" PassEventArgsToCommand="True" />
  255. </i:EventTrigger>
  256. </i:Interaction.Triggers>
  257. <ComboBoxItem x:Name="ActualSize" Style="{StaticResource ZoomComboxItemStyle}">
  258. <StackPanel Orientation="Horizontal">
  259. <Border x:Name="ActualSizeBorder" Margin="10,0,12,0">
  260. <!--<Path Fill="Black" VerticalAlignment="Center" HorizontalAlignment="Center" Data="M10.807106,0.0999999046 L15.0999992,5.39289312 L15.0999992,15.8999991 L0.899999857,15.8999991 L0.899999857,0.0999999046 L10.807106,0.0999999046 Z M10.3929999,1.0999999 L1.89999986,1.0999999 L1.89999986,14.8989999 L14.0989999,14.8989999 L14.0989999,5.8059999 L10.3929999,1.0999999 Z M8,10.53125 C8.15885417,10.53125 8.29361979,10.5833333 8.40429688,10.6875 C8.51497396,10.7916667 8.5703125,10.9166667 8.5703125,11.0625 C8.5703125,11.2057292 8.51497396,11.328776 8.40429688,11.4316406 C8.29361979,11.5345052 8.15885417,11.5859375 8,11.5859375 C7.84375,11.5859375 7.7109375,11.5345052 7.6015625,11.4316406 C7.4921875,11.328776 7.4375,11.2057292 7.4375,11.0625 C7.4375,10.9166667 7.4921875,10.7916667 7.6015625,10.6875 C7.7109375,10.5833333 7.84375,10.53125 8,10.53125 Z M6.21875,5.7734375 L6.21875,11.5 L5.3125,11.5 L5.3125,6.8828125 C5.1484375,7 4.97200521,7.09960938 4.78320312,7.18164062 C4.59440104,7.26367188 4.37890625,7.3359375 4.13671875,7.3984375 L4.13671875,7.3984375 L4.13671875,6.625 C4.28776042,6.57552083 4.43359375,6.5234375 4.57421875,6.46875 C4.71484375,6.4140625 4.85351562,6.35286458 4.99023438,6.28515625 C5.12695312,6.21744792 5.26497396,6.14192708 5.40429688,6.05859375 C5.54361979,5.97526042 5.6875,5.88020833 5.8359375,5.7734375 L5.8359375,5.7734375 L6.21875,5.7734375 Z M11.3671875,5.7734375 L11.3671875,11.5 L10.4609375,11.5 L10.4609375,6.8828125 C10.296875,7 10.1204427,7.09960938 9.93164062,7.18164062 C9.74283854,7.26367188 9.52734375,7.3359375 9.28515625,7.3984375 L9.28515625,7.3984375 L9.28515625,6.625 C9.43619792,6.57552083 9.58203125,6.5234375 9.72265625,6.46875 C9.86328125,6.4140625 10.0019531,6.35286458 10.1386719,6.28515625 C10.2753906,6.21744792 10.4134115,6.14192708 10.5527344,6.05859375 C10.6920573,5.97526042 10.8359375,5.88020833 10.984375,5.7734375 L10.984375,5.7734375 L11.3671875,5.7734375 Z M8,7.44140625 C8.15885417,7.44140625 8.29361979,7.49348958 8.40429688,7.59765625 C8.51497396,7.70182292 8.5703125,7.82682292 8.5703125,7.97265625 C8.5703125,8.11588542 8.51497396,8.23893229 8.40429688,8.34179688 C8.29361979,8.44466146 8.15885417,8.49609375 8,8.49609375 C7.84375,8.49609375 7.7109375,8.44466146 7.6015625,8.34179688 C7.4921875,8.23893229 7.4375,8.11588542 7.4375,7.97265625 C7.4375,7.82682292 7.4921875,7.70182292 7.6015625,7.59765625 C7.7109375,7.49348958 7.84375,7.44140625 8,7.44140625 Z" />-->
  261. </Border>
  262. <TextBlock
  263. x:Name="ActualSizeText"
  264. VerticalAlignment="Center"
  265. Text="Actual Size" />
  266. </StackPanel>
  267. </ComboBoxItem>
  268. <ComboBoxItem x:Name="FitWidth" Style="{StaticResource ZoomComboxItemStyle}">
  269. <StackPanel Orientation="Horizontal ">
  270. <Border Name="FitWidthBorder" Margin="10,0,12,0">
  271. <!--<Image Width="16" Height="16" Source="../Resources/Image/bottombar/fitwidth.png" />-->
  272. </Border>
  273. <TextBlock x:Name="FitWidthText" Text="Fit Width" />
  274. </StackPanel>
  275. </ComboBoxItem>
  276. <ComboBoxItem x:Name="FitHeight" Style="{StaticResource ZoomComboxItemStyle}">
  277. <StackPanel Orientation="Horizontal">
  278. <Border Name="FitHeightBorder" Margin="10,0,12,0">
  279. <!--<Image Width="16" Height="16" Source="../Resources/Image/bottombar/adaptationHeight.png" />-->
  280. </Border>
  281. <TextBlock x:Name="FitHeightText" Text="Fit Height" />
  282. </StackPanel>
  283. </ComboBoxItem>
  284. <Separator
  285. Height="1"
  286. BorderBrush="#33000000"
  287. BorderThickness="1"
  288. Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
  289. <ComboBoxItem
  290. Padding="40,0,0,0"
  291. Content="10%"
  292. Style="{StaticResource ZoomComboxItemStyle}"
  293. Tag="10" />
  294. <ComboBoxItem
  295. Padding="40,0,0,0"
  296. Content="25%"
  297. Style="{StaticResource ZoomComboxItemStyle}"
  298. Tag="25" />
  299. <ComboBoxItem
  300. Padding="40,0,0,0"
  301. Content="50%"
  302. Style="{StaticResource ZoomComboxItemStyle}"
  303. Tag="50" />
  304. <ComboBoxItem
  305. Padding="40,0,0,0"
  306. Content="100%"
  307. Style="{StaticResource ZoomComboxItemStyle}"
  308. Tag="100" />
  309. <ComboBoxItem
  310. Padding="40,0,0,0"
  311. Content="150%"
  312. Style="{StaticResource ZoomComboxItemStyle}"
  313. Tag="150" />
  314. <ComboBoxItem
  315. Padding="40,0,0,0"
  316. Content="200%"
  317. Style="{StaticResource ZoomComboxItemStyle}"
  318. Tag="200" />
  319. <ComboBoxItem
  320. Padding="40,0,0,0"
  321. Content="300%"
  322. Style="{StaticResource ZoomComboxItemStyle}"
  323. Tag="300" />
  324. <ComboBoxItem
  325. Padding="40,0,0,0"
  326. Content="400%"
  327. Style="{StaticResource ZoomComboxItemStyle}"
  328. Tag="400" />
  329. <ComboBoxItem
  330. Padding="40,0,0,0"
  331. Content="500%"
  332. Style="{StaticResource ZoomComboxItemStyle}"
  333. Tag="500" />
  334. <ComboBoxItem
  335. Padding="40,0,0,0"
  336. Content="1000%"
  337. Style="{StaticResource ZoomComboxItemStyle}"
  338. Tag="1000" />
  339. </ComboBox>
  340. <TextBlock
  341. Width="46"
  342. Height="14"
  343. Margin="4,0,0,0"
  344. HorizontalAlignment="Left"
  345. Background="White"
  346. Text="{Binding CurrentZoom, StringFormat={}{0}%}" />
  347. </Grid>
  348. <Separator Margin="0" Style="{StaticResource VerticalSeparatorStyle}" />
  349. <StackPanel Orientation="Horizontal">
  350. <Button
  351. Width="20"
  352. Height="20"
  353. Margin="4,0"
  354. VerticalContentAlignment="Center"
  355. Command="{Binding ZoomOutCommand}"
  356. Style="{StaticResource subToolBar}">
  357. <Path
  358. Width="20"
  359. Height="20"
  360. HorizontalAlignment="Center"
  361. VerticalAlignment="Center"
  362. Data="M4 9L16 9L16 11L4 11L4 9Z"
  363. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  364. </Button>
  365. <Button
  366. Width="20"
  367. Height="20"
  368. Margin="4,0"
  369. VerticalContentAlignment="Center"
  370. Command="{Binding ZoomInCommand}"
  371. Style="{StaticResource subToolBar}">
  372. <Path
  373. Width="20"
  374. Height="20"
  375. HorizontalAlignment="Center"
  376. VerticalAlignment="Center"
  377. Data="M9 11V16H11V11H16V9H11V4H9V9H4L4 11H9Z"
  378. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  379. </Button>
  380. </StackPanel>
  381. </StackPanel>
  382. </Border>
  383. </StackPanel>
  384. </Grid>
  385. </UserControl>