|
@@ -12,16 +12,139 @@
|
|
|
d:DesignWidth="800"
|
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
mc:Ignorable="d">
|
|
|
+ <UserControl.Resources>
|
|
|
+ <ResourceDictionary>
|
|
|
+ <Style x:Key="TabControlWithUnderLineStyle" TargetType="{x:Type TabControl}">
|
|
|
+ <Setter Property="Padding" Value="2" />
|
|
|
+ <Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
+ <Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
+ <Setter Property="Background" Value="Transparent" />
|
|
|
+ <Setter Property="BorderBrush" Value="#FFACACAC" />
|
|
|
+ <Setter Property="BorderThickness" Value="0,0,0,1" />
|
|
|
+ <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type TabControl}">
|
|
|
+ <Grid
|
|
|
+ x:Name="templateRoot"
|
|
|
+ ClipToBounds="True"
|
|
|
+ KeyboardNavigation.TabNavigation="Local"
|
|
|
+ SnapsToDevicePixels="True">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition x:Name="ColumnDefinition0" />
|
|
|
+ <ColumnDefinition x:Name="ColumnDefinition1" Width="0" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition x:Name="RowDefinition0" Height="Auto" />
|
|
|
+ <RowDefinition x:Name="RowDefinition1" Height="*" />
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <!-- 加滑轨配合滑轨样式可实现箭头左右滚动的菜单栏 -->
|
|
|
+ <!--<ScrollViewer Margin="140 0 140 0" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled">-->
|
|
|
+ <TabPanel
|
|
|
+ x:Name="HeaderPanel"
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.Column="0"
|
|
|
+ Margin="30,0"
|
|
|
+ HorizontalAlignment="Center"
|
|
|
+ Panel.ZIndex="1"
|
|
|
+ Background="Transparent"
|
|
|
+ IsItemsHost="True"
|
|
|
+ KeyboardNavigation.TabIndex="1" />
|
|
|
+ <!--</ScrollViewer>-->
|
|
|
+ <!-- 页头和中间内容的分割线 -->
|
|
|
+ <Line
|
|
|
+ Margin="0,0,0,1"
|
|
|
+ VerticalAlignment="Bottom"
|
|
|
+ SnapsToDevicePixels="True"
|
|
|
+ Stroke="Transparent"
|
|
|
+ StrokeThickness="0.1"
|
|
|
+ X1="0"
|
|
|
+ X2="{Binding ActualWidth, RelativeSource={RelativeSource Self}}" />
|
|
|
+ <Border
|
|
|
+ x:Name="ContentPanel"
|
|
|
+ Grid.Row="1"
|
|
|
+ Grid.Column="0"
|
|
|
+ Background="{TemplateBinding Background}"
|
|
|
+ BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
+ KeyboardNavigation.DirectionalNavigation="Contained"
|
|
|
+ KeyboardNavigation.TabIndex="2"
|
|
|
+ KeyboardNavigation.TabNavigation="Local">
|
|
|
+ <ContentPresenter
|
|
|
+ x:Name="PART_SelectedContentHost"
|
|
|
+ Margin="0"
|
|
|
+ Content="{TemplateBinding SelectedContent}"
|
|
|
+ ContentSource="SelectedContent"
|
|
|
+ ContentStringFormat="{TemplateBinding SelectedContentStringFormat}"
|
|
|
+ ContentTemplate="{TemplateBinding SelectedContentTemplate}"
|
|
|
+ SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <Trigger Property="TabStripPlacement" Value="Bottom">
|
|
|
+ <Setter TargetName="HeaderPanel" Property="Grid.Row" Value="1" />
|
|
|
+ <Setter TargetName="ContentPanel" Property="Grid.Row" Value="0" />
|
|
|
+ <Setter TargetName="RowDefinition0" Property="Height" Value="*" />
|
|
|
+ <Setter TargetName="RowDefinition1" Property="Height" Value="Auto" />
|
|
|
+
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="TabStripPlacement" Value="Left">
|
|
|
+ <Setter TargetName="HeaderPanel" Property="Grid.Row" Value="0" />
|
|
|
+ <Setter TargetName="ContentPanel" Property="Grid.Row" Value="0" />
|
|
|
+ <Setter TargetName="HeaderPanel" Property="Grid.Column" Value="0" />
|
|
|
+ <Setter TargetName="ContentPanel" Property="Grid.Column" Value="1" />
|
|
|
+ <Setter TargetName="ColumnDefinition0" Property="Width" Value="Auto" />
|
|
|
+ <Setter TargetName="ColumnDefinition1" Property="Width" Value="*" />
|
|
|
+ <Setter TargetName="RowDefinition0" Property="Height" Value="*" />
|
|
|
+ <Setter TargetName="RowDefinition1" Property="Height" Value="0" />
|
|
|
+
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="TabStripPlacement" Value="Right">
|
|
|
+ <Setter TargetName="HeaderPanel" Property="Grid.Row" Value="0" />
|
|
|
+ <Setter TargetName="ContentPanel" Property="Grid.Row" Value="0" />
|
|
|
+ <Setter TargetName="HeaderPanel" Property="Grid.Column" Value="1" />
|
|
|
+ <Setter TargetName="ContentPanel" Property="Grid.Column" Value="0" />
|
|
|
+ <Setter TargetName="ColumnDefinition0" Property="Width" Value="*" />
|
|
|
+ <Setter TargetName="ColumnDefinition1" Property="Width" Value="Auto" />
|
|
|
+ <Setter TargetName="RowDefinition0" Property="Height" Value="*" />
|
|
|
+ <Setter TargetName="RowDefinition1" Property="Height" Value="0" />
|
|
|
+ </Trigger>
|
|
|
+ <Trigger Property="IsEnabled" Value="False">
|
|
|
+ <Setter TargetName="templateRoot" Property="TextElement.Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}" />
|
|
|
+ </Trigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ <Setter Property="KeyboardNavigation.DirectionalNavigation" Value="Cycle" />
|
|
|
+ <Setter Property="KeyboardNavigation.TabNavigation" Value="Cycle" />
|
|
|
+ </Style>
|
|
|
+ </ResourceDictionary>
|
|
|
+ </UserControl.Resources>
|
|
|
<Grid>
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Name="HeadRow" Height="40" />
|
|
|
<RowDefinition Name="ToolRow" Height="40" />
|
|
|
<RowDefinition Height="*" />
|
|
|
+ <RowDefinition Height="24" />
|
|
|
</Grid.RowDefinitions>
|
|
|
+ <TabControl
|
|
|
+ x:Name="ToolTabControl"
|
|
|
+ Grid.Row="0"
|
|
|
+ Grid.RowSpan="2"
|
|
|
+ VerticalAlignment="Top"
|
|
|
+ BorderThickness="0"
|
|
|
+ Style="{StaticResource TabControlWithUnderLineStyle}">
|
|
|
+ <TabItem Header="Tool">
|
|
|
+ <Grid Grid.Row="1" Height="20" />
|
|
|
+ </TabItem>
|
|
|
+ <TabItem Header="Page Edit" />
|
|
|
+ <TabItem Header="Form" />
|
|
|
+ </TabControl>
|
|
|
<Grid Name="DocumentView" Grid.Row="2">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition x:Name="BOTACloumn" Width="40" />
|
|
|
- <ColumnDefinition Width="12" />
|
|
|
+ <ColumnDefinition Width="12" MaxWidth="400" />
|
|
|
<ColumnDefinition
|
|
|
Name="ViewerColumn"
|
|
|
Width="*"
|
|
@@ -29,15 +152,20 @@
|
|
|
<ColumnDefinition Width="12" />
|
|
|
<ColumnDefinition Name="PropertyColumn" Width="0" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="*" />
|
|
|
- <RowDefinition Height="32" />
|
|
|
- </Grid.RowDefinitions>
|
|
|
+ <ContentControl prism:RegionManager.RegionName="{Binding BOTARegionName}" />
|
|
|
+ <GridSplitter
|
|
|
+ Grid.Column="1"
|
|
|
+ Width="12"
|
|
|
+ FocusVisualStyle="{x:Null}"
|
|
|
+ ResizeBehavior="PreviousAndNext"
|
|
|
+ ShowsPreview="True" />
|
|
|
<ContentControl
|
|
|
x:Name="PDFViewerContent"
|
|
|
Grid.Column="2"
|
|
|
HorizontalAlignment="Stretch"
|
|
|
- prism:RegionManager.RegionName="PDFViewer" />
|
|
|
+ prism:RegionManager.RegionName="{Binding ViwerRegionName}" />
|
|
|
+ <Button Grid.Column="3" />
|
|
|
+ <ContentControl Grid.Column="4" prism:RegionManager.RegionName="{Binding PropertyRegionName}" />
|
|
|
</Grid>
|
|
|
</Grid>
|
|
|
</UserControl>
|