|
@@ -18,7 +18,28 @@
|
|
|
BorderBrush="{StaticResource color.sys.layout.divider}"
|
|
|
BorderThickness="0,1,0,0"
|
|
|
mc:Ignorable="d">
|
|
|
- <UserControl.Resources />
|
|
|
+ <UserControl.Resources >
|
|
|
+ <RoutedUICommand x:Key="SetSinglePage" Text="SetSinglePage"/>
|
|
|
+ <RoutedUICommand x:Key="SetDoublePage" Text="SetDoublePage"/>
|
|
|
+ </UserControl.Resources>
|
|
|
+ <UserControl.InputBindings>
|
|
|
+ <KeyBinding Command="{Binding FirstPageCommand}" Modifiers="Ctrl" Key="Up" />
|
|
|
+ <KeyBinding Command="{Binding LastPageCommand}" Modifiers="Ctrl" Key="Down" />
|
|
|
+ <KeyBinding Command="{Binding PrePageCommand}" Modifiers="Ctrl" Key="Left" ></KeyBinding>
|
|
|
+ <KeyBinding Command="{Binding NextPageCommand}" Modifiers="Ctrl" Key="Right" ></KeyBinding>
|
|
|
+ <KeyBinding Command="{Binding PreViewCommand}" Modifiers="Ctrl" Key="OemOpenBrackets"></KeyBinding>
|
|
|
+ <KeyBinding Command="{Binding PreViewCommand}" Modifiers="Ctrl" Key="OemCloseBrackets"></KeyBinding>
|
|
|
+ <KeyBinding Command="{Binding PageTextKeyDownCommand}" Modifiers="Ctrl+Alt" Key="G"></KeyBinding>
|
|
|
+ <KeyBinding Command="{Binding ZoomInCommand}" Modifiers="Ctrl" Key="OemPlus"></KeyBinding>
|
|
|
+ <KeyBinding Command="{Binding ZoomInCommand}" Modifiers="Ctrl+Shift" Key="OemPlus"></KeyBinding>
|
|
|
+ <KeyBinding Command="{Binding ZoomOutCommand}" Modifiers="Ctrl" Key="OemMinus"></KeyBinding>
|
|
|
+ <KeyBinding Command="{StaticResource SetSinglePage}" Gesture="Ctrl+1" ></KeyBinding>
|
|
|
+ <KeyBinding Command="{StaticResource SetDoublePage}" Gesture="Ctrl+2" ></KeyBinding>
|
|
|
+ </UserControl.InputBindings>
|
|
|
+ <UserControl.CommandBindings>
|
|
|
+ <CommandBinding x:Name="SetSinglePageCommand" Command="{StaticResource SetSinglePage}" Executed="SetSinglePageCommand_Executed"/>
|
|
|
+ <CommandBinding x:Name="SetDoublePageCommand" Command="{StaticResource SetDoublePage}" Executed="SetDoublePageCommand_Executed"/>
|
|
|
+ </UserControl.CommandBindings>
|
|
|
<Grid Height="32" Background="{StaticResource color.sys.layout.mg}">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="*" />
|
|
@@ -35,14 +56,16 @@
|
|
|
Height="24"
|
|
|
Margin="4"
|
|
|
Command="{Binding FirstPageCommand}"
|
|
|
- Style="{StaticResource btn.selector}">
|
|
|
+ Style="{StaticResource btn.selector}"
|
|
|
+ >
|
|
|
<Path
|
|
|
Width="24"
|
|
|
Height="24"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
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"
|
|
|
- Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
|
|
|
+ Fill="{StaticResource color.icon.base.neutral.norm.lv1}" >
|
|
|
+ </Path>
|
|
|
</Button>
|
|
|
<Button
|
|
|
Width="24"
|
|
@@ -174,6 +197,7 @@
|
|
|
Width="24"
|
|
|
Height="24"
|
|
|
Margin="4"
|
|
|
+ Name="SinglePage_Btn"
|
|
|
Command="{Binding SetViewModeCommand}"
|
|
|
IsChecked="{Binding IsSingleView}"
|
|
|
Style="{StaticResource StateBarRbt}">
|
|
@@ -190,6 +214,7 @@
|
|
|
Width="24"
|
|
|
Height="24"
|
|
|
Margin="4"
|
|
|
+ Name="DoublePage_Btn"
|
|
|
Command="{Binding SetViewModeCommand}"
|
|
|
Cursor="Hand"
|
|
|
IsChecked="{Binding IsDoubleView}"
|