|
@@ -47,6 +47,8 @@
|
|
|
<convert:BoolToVisible x:Key="BoolToVisibleConvert" />
|
|
|
<RoutedUICommand x:Key="CloseLeft" Text="CloseLeft" />
|
|
|
<RoutedUICommand x:Key="CloseRight" Text="CloseRight" />
|
|
|
+ <RoutedUICommand x:Key="AddTab" Text="AddTab" />
|
|
|
+ <RoutedUICommand x:Key="CloseTab" Text="CloseTab" />
|
|
|
</ResourceDictionary>
|
|
|
</UserControl.Resources>
|
|
|
<UserControl.InputBindings>
|
|
@@ -59,11 +61,17 @@
|
|
|
Command="{StaticResource CloseRight}"
|
|
|
Modifiers="Ctrl+Shift" />
|
|
|
<KeyBinding Command="{Binding OpenFileCommand}" Gesture="Ctrl+O" />
|
|
|
- <KeyBinding Command="{Binding mainViewModel.mainWindowViewModel.AddTab}" Gesture="Ctrl+T" />
|
|
|
+ <KeyBinding
|
|
|
+ Key="T"
|
|
|
+ Command="{StaticResource AddTab}"
|
|
|
+ Modifiers="Ctrl" />
|
|
|
<KeyBinding Command="{Binding SaveFile}" Gesture="Ctrl+S" />
|
|
|
<KeyBinding Command="{Binding SaveAsFile}" Gesture="Ctrl+Shift+S" />
|
|
|
<KeyBinding Command="{Binding CloseWindowCommand}" Gesture="Ctrl+Shift+W" />
|
|
|
- <KeyBinding Command="{Binding mainViewModel.CloseTab}" Gesture="Ctrl+W" />
|
|
|
+ <KeyBinding
|
|
|
+ Key="W"
|
|
|
+ Command="{StaticResource CloseTab}"
|
|
|
+ Modifiers="Ctrl" />
|
|
|
<KeyBinding
|
|
|
Key="P"
|
|
|
Command="{Binding PrintCommand}"
|
|
@@ -84,6 +92,14 @@
|
|
|
x:Name="CloseLeftCommand"
|
|
|
Command="{StaticResource CloseLeft}"
|
|
|
Executed="CloseLeftCommand_Executed" />
|
|
|
+ <CommandBinding
|
|
|
+ x:Name="AddTabCommand"
|
|
|
+ Command="{StaticResource AddTab}"
|
|
|
+ Executed="AddTabCommand_Executed" />
|
|
|
+ <CommandBinding
|
|
|
+ x:Name="CloseTabCommand"
|
|
|
+ Command="{StaticResource CloseTab}"
|
|
|
+ Executed="CloseTabCommand_Executed" />
|
|
|
<CommandBinding
|
|
|
x:Name="CloseRightCommand"
|
|
|
Command="{StaticResource CloseRight}"
|
|
@@ -322,7 +338,9 @@
|
|
|
Width="28"
|
|
|
Height="28"
|
|
|
BorderThickness="0"
|
|
|
- IsChecked="{Binding IsPropertyOpen}"
|
|
|
+ Command="{Binding OpenPropertyCommand}"
|
|
|
+ CommandParameter="{Binding ElementName=TbtnProperty, Path=IsChecked}"
|
|
|
+ IsChecked="{Binding IsPropertyOpen, Mode=OneWay}"
|
|
|
IsEnabled="{Binding isInPageEdit, Converter={StaticResource UnBoolConvert}}"
|
|
|
Style="{StaticResource SubToolbarTgb}"
|
|
|
ToolTip="{Binding T_Properties}">
|
|
@@ -411,7 +429,6 @@
|
|
|
<ContentControl
|
|
|
Name="ContentToolsBar"
|
|
|
Grid.Row="{Binding GridToolRow}"
|
|
|
- Panel.ZIndex="2"
|
|
|
prism:RegionManager.RegionName="{Binding ToolsBarContentRegionName}"
|
|
|
Visibility="{Binding ToolsBarContentVisible}" />
|
|
|
|