|
@@ -20,7 +20,6 @@
|
|
|
DragOver="UserControl_DragOver"
|
|
|
Drop="UserControl_Drop"
|
|
|
IsVisibleChanged="UserControl_IsVisibleChanged"
|
|
|
- KeyDown="UserControl_KeyDown"
|
|
|
MouseDown="UserControl_MouseDown"
|
|
|
Unloaded="UserControl_Unloaded"
|
|
|
mc:Ignorable="d">
|
|
@@ -432,7 +431,6 @@
|
|
|
</ToggleButton>
|
|
|
</StackPanel>
|
|
|
|
|
|
-
|
|
|
<ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Disabled" VerticalAlignment="Center" Margin="180,0,160,0" x:Name="ScrViewTab">
|
|
|
<TabControl
|
|
|
x:Name="ToolTabControl"
|
|
@@ -446,7 +444,6 @@
|
|
|
Style="{StaticResource TabControlWithUnderLineStyle}"
|
|
|
Visibility="{Binding IsReadMode}">
|
|
|
|
|
|
-
|
|
|
<cus:IconAndTextTabItem
|
|
|
x:Name="TabItemAnnotation"
|
|
|
Header="{Binding T_Annotation}"
|
|
@@ -506,120 +503,109 @@
|
|
|
</TabControl>
|
|
|
</ScrollViewer>
|
|
|
|
|
|
-
|
|
|
-
|
|
|
<!--<ScrollViewer HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Disabled" VerticalAlignment="Center" Margin="180,0,160,0">
|
|
|
- <TabControl
|
|
|
- x:Name="ToolTabControl"
|
|
|
- Grid.Row="0"
|
|
|
- Grid.RowSpan="2"
|
|
|
- HorizontalAlignment="Center"
|
|
|
- VerticalAlignment="Top"
|
|
|
- BorderThickness="0"
|
|
|
- PreviewMouseLeftButtonDown="ToolTabControl_PreviewMouseLeftButtonDown"
|
|
|
- SelectedIndex="{Binding TabSelectedIndex, Mode=TwoWay}"
|
|
|
- Style="{StaticResource TabControlWithUnderLineStyle}"
|
|
|
- Visibility="{Binding IsReadMode}">
|
|
|
-
|
|
|
-
|
|
|
- <cus:IconAndTextTabItem
|
|
|
- x:Name="TabItemAnnotation"
|
|
|
- Header="{Binding T_Annotation}"
|
|
|
- Style="{StaticResource ToolbarTabs}">
|
|
|
- <Grid Grid.Row="1" Height="40" />
|
|
|
- </cus:IconAndTextTabItem>
|
|
|
- <cus:IconAndTextTabItem
|
|
|
- x:Name="TabItemPageEdit"
|
|
|
- Header="{Binding T_PageEdit}"
|
|
|
- Style="{StaticResource ToolbarTabs}" />
|
|
|
- <cus:IconAndTextTabItem
|
|
|
- x:Name="TabItemConvert"
|
|
|
- Header="{Binding T_Converter}"
|
|
|
- Style="{StaticResource ToolbarTabs}" />
|
|
|
- <cus:IconAndTextTabItem
|
|
|
- x:Name="TabItemScan"
|
|
|
- Header="扫描和OCR"
|
|
|
- Style="{StaticResource ToolbarTabs}"
|
|
|
- Visibility="Collapsed">
|
|
|
- <Grid Grid.Row="1" Height="40" />
|
|
|
- </cus:IconAndTextTabItem>
|
|
|
- <cus:IconAndTextTabItem
|
|
|
- x:Name="TabItemEdit"
|
|
|
- Height="40"
|
|
|
- Header="编辑"
|
|
|
- Style="{StaticResource ToolbarTabs}"
|
|
|
- Visibility="Collapsed">
|
|
|
- <Grid Grid.Row="1" Height="40" />
|
|
|
- </cus:IconAndTextTabItem>
|
|
|
- <cus:IconAndTextTabItem
|
|
|
- x:Name="TabItemForm"
|
|
|
- Height="40"
|
|
|
- Header="表单"
|
|
|
- Style="{StaticResource ToolbarTabs}"
|
|
|
- Visibility="Collapsed">
|
|
|
- <Grid Grid.Row="1" Height="40" />
|
|
|
- </cus:IconAndTextTabItem>
|
|
|
- <cus:IconAndTextTabItem
|
|
|
- x:Name="TabItemFill"
|
|
|
- Height="40"
|
|
|
- Header="{Binding T_FillSign}"
|
|
|
- Style="{StaticResource ToolbarTabs}">
|
|
|
- <Grid Grid.Row="1" Height="40" />
|
|
|
- </cus:IconAndTextTabItem>
|
|
|
- <cus:IconAndTextTabItem
|
|
|
- x:Name="TabItemTool"
|
|
|
- Height="40"
|
|
|
- Header="{Binding T_Tools}"
|
|
|
- Style="{StaticResource ToolbarTabs}">
|
|
|
- <Grid Grid.Row="1" Height="40" />
|
|
|
- </cus:IconAndTextTabItem>
|
|
|
- <i:Interaction.Triggers>
|
|
|
- <i:EventTrigger EventName="SelectionChanged">
|
|
|
- <i:InvokeCommandAction Command="{Binding TabControlSelectionChangedCommand}" PassEventArgsToCommand="True" />
|
|
|
- </i:EventTrigger>
|
|
|
- </i:Interaction.Triggers>
|
|
|
- </TabControl>
|
|
|
- <ScrollViewer.Resources>
|
|
|
- <Style TargetType="ScrollBar">
|
|
|
- <Setter Property="VerticalAlignment" Value="Center"/>
|
|
|
- <Setter Property="Template">
|
|
|
- <Setter.Value>
|
|
|
- <ControlTemplate TargetType="ScrollBar">
|
|
|
- <Grid >
|
|
|
- <Grid.ColumnDefinitions>
|
|
|
- <ColumnDefinition Width="Auto" />
|
|
|
- <ColumnDefinition Width="{Binding ElementName=ToolTabControl}" />
|
|
|
- <ColumnDefinition Width="Auto" />
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
-
|
|
|
- <Button
|
|
|
- Grid.Column="0"
|
|
|
- Width="15"
|
|
|
- Command="{x:Static ScrollBar.LineLeftCommand}"
|
|
|
- CommandTarget="{Binding ElementName=scrollViewer}"
|
|
|
- Content="<" />
|
|
|
-
|
|
|
- <Button
|
|
|
- Grid.Column="2"
|
|
|
- Width="15"
|
|
|
- Command="{x:Static ScrollBar.LineRightCommand}"
|
|
|
- CommandTarget="{Binding ElementName=scrollViewer}"
|
|
|
- Content=">" />
|
|
|
- </Grid>
|
|
|
- </ControlTemplate>
|
|
|
- </Setter.Value>
|
|
|
- </Setter>
|
|
|
- </Style>
|
|
|
- </ScrollViewer.Resources>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+ <TabControl
|
|
|
+ x:Name="ToolTabControl"
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.RowSpan="2"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ VerticalAlignment="Top"
|
|
|
+ BorderThickness="0"
|
|
|
+ PreviewMouseLeftButtonDown="ToolTabControl_PreviewMouseLeftButtonDown"
|
|
|
+ SelectedIndex="{Binding TabSelectedIndex, Mode=TwoWay}"
|
|
|
+ Style="{StaticResource TabControlWithUnderLineStyle}"
|
|
|
+ Visibility="{Binding IsReadMode}">
|
|
|
+
|
|
|
+ <cus:IconAndTextTabItem
|
|
|
+ x:Name="TabItemAnnotation"
|
|
|
+ Header="{Binding T_Annotation}"
|
|
|
+ Style="{StaticResource ToolbarTabs}">
|
|
|
+ <Grid Grid.Row="1" Height="40" />
|
|
|
+ </cus:IconAndTextTabItem>
|
|
|
+ <cus:IconAndTextTabItem
|
|
|
+ x:Name="TabItemPageEdit"
|
|
|
+ Header="{Binding T_PageEdit}"
|
|
|
+ Style="{StaticResource ToolbarTabs}" />
|
|
|
+ <cus:IconAndTextTabItem
|
|
|
+ x:Name="TabItemConvert"
|
|
|
+ Header="{Binding T_Converter}"
|
|
|
+ Style="{StaticResource ToolbarTabs}" />
|
|
|
+ <cus:IconAndTextTabItem
|
|
|
+ x:Name="TabItemScan"
|
|
|
+ Header="扫描和OCR"
|
|
|
+ Style="{StaticResource ToolbarTabs}"
|
|
|
+ Visibility="Collapsed">
|
|
|
+ <Grid Grid.Row="1" Height="40" />
|
|
|
+ </cus:IconAndTextTabItem>
|
|
|
+ <cus:IconAndTextTabItem
|
|
|
+ x:Name="TabItemEdit"
|
|
|
+ Height="40"
|
|
|
+ Header="编辑"
|
|
|
+ Style="{StaticResource ToolbarTabs}"
|
|
|
+ Visibility="Collapsed">
|
|
|
+ <Grid Grid.Row="1" Height="40" />
|
|
|
+ </cus:IconAndTextTabItem>
|
|
|
+ <cus:IconAndTextTabItem
|
|
|
+ x:Name="TabItemForm"
|
|
|
+ Height="40"
|
|
|
+ Header="表单"
|
|
|
+ Style="{StaticResource ToolbarTabs}"
|
|
|
+ Visibility="Collapsed">
|
|
|
+ <Grid Grid.Row="1" Height="40" />
|
|
|
+ </cus:IconAndTextTabItem>
|
|
|
+ <cus:IconAndTextTabItem
|
|
|
+ x:Name="TabItemFill"
|
|
|
+ Height="40"
|
|
|
+ Header="{Binding T_FillSign}"
|
|
|
+ Style="{StaticResource ToolbarTabs}">
|
|
|
+ <Grid Grid.Row="1" Height="40" />
|
|
|
+ </cus:IconAndTextTabItem>
|
|
|
+ <cus:IconAndTextTabItem
|
|
|
+ x:Name="TabItemTool"
|
|
|
+ Height="40"
|
|
|
+ Header="{Binding T_Tools}"
|
|
|
+ Style="{StaticResource ToolbarTabs}">
|
|
|
+ <Grid Grid.Row="1" Height="40" />
|
|
|
+ </cus:IconAndTextTabItem>
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="SelectionChanged">
|
|
|
+ <i:InvokeCommandAction Command="{Binding TabControlSelectionChangedCommand}" PassEventArgsToCommand="True" />
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </TabControl>
|
|
|
+ <ScrollViewer.Resources>
|
|
|
+ <Style TargetType="ScrollBar">
|
|
|
+ <Setter Property="VerticalAlignment" Value="Center" />
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="ScrollBar">
|
|
|
+ <Grid>
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ <ColumnDefinition Width="{Binding ElementName=ToolTabControl}" />
|
|
|
+ <ColumnDefinition Width="Auto" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+
|
|
|
+ <Button
|
|
|
+ Grid.Column="0"
|
|
|
+ Width="15"
|
|
|
+ Command="{x:Static ScrollBar.LineLeftCommand}"
|
|
|
+ CommandTarget="{Binding ElementName=scrollViewer}"
|
|
|
+ Content="<" />
|
|
|
+
|
|
|
+ <Button
|
|
|
+ Grid.Column="2"
|
|
|
+ Width="15"
|
|
|
+ Command="{x:Static ScrollBar.LineRightCommand}"
|
|
|
+ CommandTarget="{Binding ElementName=scrollViewer}"
|
|
|
+ Content=">" />
|
|
|
+ </Grid>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+ </ScrollViewer.Resources>
|
|
|
</ScrollViewer>-->
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
</Grid>
|
|
|
|
|
|
<!-- 底部工具栏 -->
|