BottomToolContent.xaml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. <UserControl
  2. x:Class="PDF_Master.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_Master.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_Master.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_Master.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. <RoutedUICommand x:Key="SetSinglePage" Text="SetSinglePage"/>
  23. <RoutedUICommand x:Key="SetDoublePage" Text="SetDoublePage"/>
  24. </UserControl.Resources>
  25. <UserControl.InputBindings>
  26. <KeyBinding Command="{Binding FirstPageCommand}" Modifiers="Ctrl" Key="Up" />
  27. <KeyBinding Command="{Binding LastPageCommand}" Modifiers="Ctrl" Key="Down" />
  28. <KeyBinding Command="{Binding PrePageCommand}" Modifiers="Ctrl" Key="Left" ></KeyBinding>
  29. <KeyBinding Command="{Binding NextPageCommand}" Modifiers="Ctrl" Key="Right" ></KeyBinding>
  30. <KeyBinding Command="{Binding PreViewCommand}" Modifiers="Ctrl" Key="OemOpenBrackets"></KeyBinding>
  31. <KeyBinding Command="{Binding PreViewCommand}" Modifiers="Ctrl" Key="OemCloseBrackets"></KeyBinding>
  32. <KeyBinding Command="{Binding PageTextKeyDownCommand}" Modifiers="Ctrl+Alt" Key="G"></KeyBinding>
  33. <KeyBinding Command="{Binding ZoomInCommand}" Modifiers="Ctrl" Key="OemPlus"></KeyBinding>
  34. <KeyBinding Command="{Binding ZoomInCommand}" Modifiers="Ctrl+Shift" Key="OemPlus"></KeyBinding>
  35. <KeyBinding Command="{Binding ZoomOutCommand}" Modifiers="Ctrl" Key="OemMinus"></KeyBinding>
  36. <KeyBinding Command="{StaticResource SetSinglePage}" Gesture="Ctrl+1" ></KeyBinding>
  37. <KeyBinding Command="{StaticResource SetDoublePage}" Gesture="Ctrl+2" ></KeyBinding>
  38. </UserControl.InputBindings>
  39. <UserControl.CommandBindings>
  40. <CommandBinding x:Name="SetSinglePageCommand" Command="{StaticResource SetSinglePage}" Executed="SetSinglePageCommand_Executed"/>
  41. <CommandBinding x:Name="SetDoublePageCommand" Command="{StaticResource SetDoublePage}" Executed="SetDoublePageCommand_Executed"/>
  42. </UserControl.CommandBindings>
  43. <Grid Height="32" Background="{StaticResource color.sys.layout.mg}">
  44. <Grid.ColumnDefinitions>
  45. <ColumnDefinition Width="*" />
  46. <ColumnDefinition Width="auto" MinWidth="{Binding ElementName=StkPnlCenter, Path=ActualWidth}" />
  47. <ColumnDefinition MinWidth="{Binding ElementName=StkPnlRight, Path=ActualWidth}" />
  48. </Grid.ColumnDefinitions>
  49. <StackPanel
  50. Name="StkPnlCenter"
  51. Grid.Column="1"
  52. HorizontalAlignment="Center"
  53. Orientation="Horizontal">
  54. <Button
  55. Width="24"
  56. Height="24"
  57. Margin="4"
  58. Command="{Binding FirstPageCommand}"
  59. Style="{StaticResource btn.selector}"
  60. >
  61. <Path
  62. Width="24"
  63. Height="24"
  64. HorizontalAlignment="Center"
  65. VerticalAlignment="Center"
  66. 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"
  67. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" >
  68. </Path>
  69. </Button>
  70. <Button
  71. Width="24"
  72. Height="24"
  73. Margin="4"
  74. Command="{Binding PrePageCommand}"
  75. Style="{StaticResource btn.selector}">
  76. <Path
  77. Width="24"
  78. Height="24"
  79. HorizontalAlignment="Center"
  80. VerticalAlignment="Center"
  81. 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"
  82. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  83. </Button>
  84. <cus:TextBoxEx
  85. Width="57"
  86. Height="24"
  87. VerticalAlignment="Center"
  88. VerticalContentAlignment="Center"
  89. CornerRadius="4"
  90. FontSize="12"
  91. InputMethod.IsInputMethodEnabled="False"
  92. ShowClose="False"
  93. Text="{Binding CurrentPage}">
  94. <i:Interaction.Triggers>
  95. <i:EventTrigger EventName="KeyDown">
  96. <i:InvokeCommandAction Command="{Binding PageTextKeyDownCommand}" PassEventArgsToCommand="True" />
  97. </i:EventTrigger>
  98. <i:EventTrigger EventName="PreviewKeyDown">
  99. <i:InvokeCommandAction Command="{Binding PageTextPreviewKeyDownCommand}" PassEventArgsToCommand="True" />
  100. </i:EventTrigger>
  101. </i:Interaction.Triggers>
  102. </cus:TextBoxEx>
  103. <TextBlock
  104. Margin="8,0"
  105. VerticalAlignment="Center"
  106. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  107. Text="/" />
  108. <TextBlock
  109. MinWidth="13"
  110. VerticalAlignment="Center"
  111. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  112. Text="{Binding PageCount, StringFormat={}{0}}" />
  113. <Button
  114. Width="24"
  115. Height="24"
  116. Margin="4"
  117. Command="{Binding NextPageCommand}"
  118. Style="{StaticResource btn.selector}">
  119. <Path
  120. Width="24"
  121. Height="24"
  122. HorizontalAlignment="Center"
  123. VerticalAlignment="Center"
  124. 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"
  125. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  126. </Button>
  127. <Button
  128. Width="24"
  129. Height="24"
  130. Margin="4"
  131. Command="{Binding LastPageCommand}"
  132. Style="{StaticResource btn.selector}">
  133. <Path
  134. Width="24"
  135. Height="24"
  136. HorizontalAlignment="Center"
  137. VerticalAlignment="Center"
  138. 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"
  139. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  140. </Button>
  141. <Separator Margin="4,0,0,0" Style="{StaticResource VerticalSeparatorStyle}" />
  142. <Button
  143. Width="24"
  144. Height="24"
  145. Margin="8,0"
  146. Command="{Binding PreViewCommand}"
  147. IsEnabled="{Binding IsPreEnable}"
  148. Style="{StaticResource btn.selector}">
  149. <Path
  150. Width="16"
  151. Height="16"
  152. 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"
  153. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  154. </Button>
  155. <Button
  156. Width="24"
  157. Height="24"
  158. Command="{Binding NextViewCommnad}"
  159. IsEnabled="{Binding IsNextEnable}"
  160. Style="{StaticResource btn.selector}">
  161. <Path
  162. Width="16"
  163. Height="16"
  164. 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"
  165. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  166. </Button>
  167. </StackPanel>
  168. <StackPanel
  169. x:Name="StkPnlRight"
  170. Grid.Column="2"
  171. HorizontalAlignment="Right"
  172. IsEnabled="{Binding RightPanelEnable}"
  173. Orientation="Horizontal">
  174. <ToggleButton
  175. Width="24"
  176. Height="24"
  177. Margin="4"
  178. Command="{Binding SetViewModeCommand}"
  179. IsChecked="{Binding IsContinue}"
  180. Style="{StaticResource SubToolbarTgb}">
  181. <Grid>
  182. <Path
  183. Width="24"
  184. Height="24"
  185. HorizontalAlignment="Center"
  186. VerticalAlignment="Center"
  187. 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"
  188. Fill="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ToggleButton}, Path=Foreground}" />
  189. </Grid>
  190. </ToggleButton>
  191. <Separator
  192. Width="1"
  193. Height="10"
  194. Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
  195. <RadioButton
  196. Width="24"
  197. Height="24"
  198. Margin="4"
  199. Name="SinglePage_Btn"
  200. Command="{Binding SetViewModeCommand}"
  201. IsChecked="{Binding IsSingleView}"
  202. Style="{StaticResource StateBarRbt}">
  203. <Path
  204. Width="24"
  205. Height="24"
  206. HorizontalAlignment="Center"
  207. VerticalAlignment="Center"
  208. 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"
  209. Fill="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=RadioButton}, Path=Foreground}" />
  210. </RadioButton>
  211. <RadioButton
  212. Width="24"
  213. Height="24"
  214. Margin="4"
  215. Name="DoublePage_Btn"
  216. Command="{Binding SetViewModeCommand}"
  217. Cursor="Hand"
  218. IsChecked="{Binding IsDoubleView}"
  219. Style="{StaticResource StateBarRbt}">
  220. <Path
  221. Width="24"
  222. Height="24"
  223. HorizontalAlignment="Center"
  224. VerticalAlignment="Center"
  225. 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"
  226. Fill="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=RadioButton}, Path=Foreground}" />
  227. </RadioButton>
  228. <RadioButton
  229. Width="24"
  230. Height="24"
  231. Margin="4"
  232. Command="{Binding SetViewModeCommand}"
  233. IsChecked="{Binding IsBookMode}"
  234. Style="{StaticResource StateBarRbt}">
  235. <Path
  236. Width="24"
  237. Height="24"
  238. HorizontalAlignment="Center"
  239. VerticalAlignment="Center"
  240. 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"
  241. Fill="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=RadioButton}, Path=Foreground}" />
  242. </RadioButton>
  243. <Separator
  244. Width="1"
  245. Height="10"
  246. Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
  247. <ToggleButton
  248. Name="TbtnIsViewPanelOpen"
  249. Width="24"
  250. Height="24"
  251. Margin="4"
  252. Command="{Binding ShowViewModularCommand}"
  253. IsChecked="{Binding IsShowViewModular}"
  254. Style="{StaticResource SubToolbarTgb}">
  255. <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}" />
  256. </ToggleButton>
  257. <Border
  258. Margin="12,0,16,0"
  259. HorizontalAlignment="Center"
  260. VerticalAlignment="Center"
  261. Background="{StaticResource color.field.bg.def}"
  262. BorderBrush="{StaticResource color.field.border.norm}"
  263. BorderThickness="1"
  264. CornerRadius="4">
  265. <StackPanel
  266. Height="20"
  267. FocusVisualStyle="{x:Null}"
  268. Orientation="Horizontal">
  269. <Grid>
  270. <ComboBox
  271. Width="72"
  272. Background="White"
  273. BorderThickness="0"
  274. FocusVisualStyle="{x:Null}"
  275. MaxDropDownHeight="510"
  276. SelectedIndex="{Binding SelectedIndex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
  277. <i:Interaction.Triggers>
  278. <i:EventTrigger EventName="SelectionChanged">
  279. <i:InvokeCommandAction Command="{Binding SelectionChangedCommand}" PassEventArgsToCommand="True" />
  280. </i:EventTrigger>
  281. </i:Interaction.Triggers>
  282. <ComboBoxItem x:Name="ActualSize" Style="{StaticResource ZoomComboxItemStyle}">
  283. <StackPanel Orientation="Horizontal">
  284. <Border x:Name="ActualSizeBorder" Margin="10,0,12,0">
  285. <!--<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" />-->
  286. </Border>
  287. <TextBlock
  288. x:Name="ActualSizeText"
  289. VerticalAlignment="Center"
  290. Text="Actual Size" />
  291. </StackPanel>
  292. </ComboBoxItem>
  293. <ComboBoxItem x:Name="FitWidth" Style="{StaticResource ZoomComboxItemStyle}">
  294. <StackPanel Orientation="Horizontal ">
  295. <Border Name="FitWidthBorder" Margin="10,0,12,0">
  296. <!--<Image Width="16" Height="16" Source="../Resources/Image/bottombar/fitwidth.png" />-->
  297. </Border>
  298. <TextBlock x:Name="FitWidthText" Text="Fit Width" />
  299. </StackPanel>
  300. </ComboBoxItem>
  301. <ComboBoxItem x:Name="FitHeight" Style="{StaticResource ZoomComboxItemStyle}">
  302. <StackPanel Orientation="Horizontal">
  303. <Border Name="FitHeightBorder" Margin="10,0,12,0">
  304. <!--<Image Width="16" Height="16" Source="../Resources/Image/bottombar/adaptationHeight.png" />-->
  305. </Border>
  306. <TextBlock x:Name="FitHeightText" Text="Fit Height" />
  307. </StackPanel>
  308. </ComboBoxItem>
  309. <Separator
  310. Height="1"
  311. BorderBrush="#33000000"
  312. BorderThickness="1"
  313. Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
  314. <ComboBoxItem
  315. Padding="40,0,0,0"
  316. Content="10%"
  317. Style="{StaticResource ZoomComboxItemStyle}"
  318. Tag="10" />
  319. <ComboBoxItem
  320. Padding="40,0,0,0"
  321. Content="25%"
  322. Style="{StaticResource ZoomComboxItemStyle}"
  323. Tag="25" />
  324. <ComboBoxItem
  325. Padding="40,0,0,0"
  326. Content="50%"
  327. Style="{StaticResource ZoomComboxItemStyle}"
  328. Tag="50" />
  329. <ComboBoxItem
  330. Padding="40,0,0,0"
  331. Content="100%"
  332. Style="{StaticResource ZoomComboxItemStyle}"
  333. Tag="100" />
  334. <ComboBoxItem
  335. Padding="40,0,0,0"
  336. Content="150%"
  337. Style="{StaticResource ZoomComboxItemStyle}"
  338. Tag="150" />
  339. <ComboBoxItem
  340. Padding="40,0,0,0"
  341. Content="200%"
  342. Style="{StaticResource ZoomComboxItemStyle}"
  343. Tag="200" />
  344. <ComboBoxItem
  345. Padding="40,0,0,0"
  346. Content="300%"
  347. Style="{StaticResource ZoomComboxItemStyle}"
  348. Tag="300" />
  349. <ComboBoxItem
  350. Padding="40,0,0,0"
  351. Content="400%"
  352. Style="{StaticResource ZoomComboxItemStyle}"
  353. Tag="400" />
  354. <ComboBoxItem
  355. Padding="40,0,0,0"
  356. Content="500%"
  357. Style="{StaticResource ZoomComboxItemStyle}"
  358. Tag="500" />
  359. <ComboBoxItem
  360. Padding="40,0,0,0"
  361. Content="1000%"
  362. Style="{StaticResource ZoomComboxItemStyle}"
  363. Tag="1000" />
  364. </ComboBox>
  365. <TextBlock
  366. Width="46"
  367. Height="14"
  368. Margin="4,0,0,0"
  369. HorizontalAlignment="Left"
  370. Background="White"
  371. Text="{Binding CurrentZoom, StringFormat={}{0}%}" />
  372. </Grid>
  373. <Separator Margin="0" Style="{StaticResource VerticalSeparatorStyle}" />
  374. <StackPanel Orientation="Horizontal">
  375. <Button
  376. Width="20"
  377. Height="20"
  378. Margin="4,0"
  379. VerticalContentAlignment="Center"
  380. Command="{Binding ZoomOutCommand}"
  381. Style="{StaticResource subToolBar}">
  382. <Path
  383. Width="20"
  384. Height="20"
  385. HorizontalAlignment="Center"
  386. VerticalAlignment="Center"
  387. Data="M4 9L16 9L16 11L4 11L4 9Z"
  388. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  389. </Button>
  390. <Button
  391. Width="20"
  392. Height="20"
  393. Margin="4,0"
  394. VerticalContentAlignment="Center"
  395. Command="{Binding ZoomInCommand}"
  396. Style="{StaticResource subToolBar}">
  397. <Path
  398. Width="20"
  399. Height="20"
  400. HorizontalAlignment="Center"
  401. VerticalAlignment="Center"
  402. Data="M9 11V16H11V11H16V9H11V4H9V9H4L4 11H9Z"
  403. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  404. </Button>
  405. </StackPanel>
  406. </StackPanel>
  407. </Border>
  408. </StackPanel>
  409. </Grid>
  410. </UserControl>