BottomToolContent.xaml 25 KB

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