|
@@ -20,83 +20,85 @@
|
|
|
</UserControl.Resources>
|
|
|
<Grid Background="Transparent">
|
|
|
<Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="40" />
|
|
|
+ <RowDefinition Height="48" />
|
|
|
<RowDefinition />
|
|
|
</Grid.RowDefinitions>
|
|
|
- <Grid x:Name="Header">
|
|
|
- <TextBlock
|
|
|
- x:Name="TxtTitle"
|
|
|
- Margin="12,0,0,0"
|
|
|
- HorizontalAlignment="Left"
|
|
|
- VerticalAlignment="Center"
|
|
|
- FontSize="18"
|
|
|
- FontWeight="SemiBold"
|
|
|
- Text="Outline" />
|
|
|
- <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
|
|
- <customcontrol:PathButton
|
|
|
- x:Name="BtnAdd"
|
|
|
- Width="32"
|
|
|
- Height="32"
|
|
|
- Click="BtnAdd_Click"
|
|
|
- Icon="{StaticResource Ic_AddButtonPath}"
|
|
|
- IconFill="#616469"
|
|
|
- IconHeight="16"
|
|
|
- IconWidth="16"
|
|
|
- IconMouseOver="{StaticResource Ic_AddButtonPath}"
|
|
|
- IconMouseOverFill="#616469"
|
|
|
- IconPress="{StaticResource Ic_AddButtonPath}"
|
|
|
- IconPressFill="#616469"
|
|
|
- CornerRadius="4"
|
|
|
- HorizontalContentAlignment="Center"
|
|
|
- MouseOverBackground="{StaticResource color.item-state.hov.bg}"
|
|
|
- MouseDownBackground="{StaticResource color.item-state.sel.bg.lv3}"
|
|
|
- MouseDownBorderBrush="{StaticResource color.item-state.sel.border.lv3}"
|
|
|
- />
|
|
|
- <customcontrol:PathButton
|
|
|
- x:Name="BtnMore"
|
|
|
- Width="32"
|
|
|
- Height="32"
|
|
|
- Click="BtnMore_Click"
|
|
|
- Icon="{StaticResource Ic_MoreButtonPath}"
|
|
|
- IconFill="#616469"
|
|
|
- IconHeight="16"
|
|
|
- IconWidth="16"
|
|
|
- CornerRadius="4"
|
|
|
- IconMouseOver="{StaticResource Ic_MoreButtonPath}"
|
|
|
- IconMouseOverFill="#616469"
|
|
|
- IconPress="{StaticResource Ic_MoreButtonPath}"
|
|
|
- IconPressFill="#616469"
|
|
|
- HorizontalContentAlignment="Center"
|
|
|
- MouseOverBackground="{StaticResource color.item-state.hov.bg}"
|
|
|
- MouseDownBackground="{StaticResource color.item-state.sel.bg.lv3}"
|
|
|
- MouseDownBorderBrush="{StaticResource color.item-state.sel.border.lv3}">
|
|
|
- <customcontrol:PathButton.ContextMenu>
|
|
|
- <ContextMenu Name="MenuMore">
|
|
|
- <ContextMenu.ItemContainerStyle>
|
|
|
- <Style TargetType="MenuItem" BasedOn="{StaticResource GlobalMenuItem}">
|
|
|
- <Setter Property="Padding" Value="-25,7,-40,7" />
|
|
|
- <Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
- </Style>
|
|
|
- </ContextMenu.ItemContainerStyle>
|
|
|
- <MenuItem
|
|
|
- Name="MenuDeleteAll"
|
|
|
- Command="{Binding DeleteAllCommand}"
|
|
|
- Header="Delete All Outline" />
|
|
|
- <MenuItem
|
|
|
- Name="MenuExpandAll"
|
|
|
- Command="{Binding ExpandAllCommand}"
|
|
|
- CommandParameter="{Binding Outlinelist}"
|
|
|
- Header="一键展开" />
|
|
|
- <MenuItem
|
|
|
- Name="MenuCollapseAll"
|
|
|
- Command="{Binding CollapseAllCommand}"
|
|
|
- CommandParameter="{Binding Outlinelist}"
|
|
|
- Header="一键折叠" />
|
|
|
- </ContextMenu>
|
|
|
- </customcontrol:PathButton.ContextMenu>
|
|
|
- </customcontrol:PathButton>
|
|
|
- </StackPanel>
|
|
|
- </Grid>
|
|
|
+ <Border BorderBrush="{StaticResource color.field.border.norm}" BorderThickness="0,0,0,1">
|
|
|
+ <Grid x:Name="Header">
|
|
|
+ <TextBlock
|
|
|
+ x:Name="TxtTitle"
|
|
|
+ Margin="16,0,0,0"
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ FontFamily="Segoe UI"
|
|
|
+ FontSize="14"
|
|
|
+ FontWeight="SemiBold"
|
|
|
+ Text="Outline" />
|
|
|
+ <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
|
|
+ <customcontrol:PathButton
|
|
|
+ x:Name="BtnAdd"
|
|
|
+ Width="32"
|
|
|
+ Height="32"
|
|
|
+ HorizontalContentAlignment="Center"
|
|
|
+ Click="BtnAdd_Click"
|
|
|
+ CornerRadius="4"
|
|
|
+ Icon="{StaticResource Ic_AddButtonPath}"
|
|
|
+ IconFill="#616469"
|
|
|
+ IconHeight="16"
|
|
|
+ IconMouseOver="{StaticResource Ic_AddButtonPath}"
|
|
|
+ IconMouseOverFill="#616469"
|
|
|
+ IconPress="{StaticResource Ic_AddButtonPath}"
|
|
|
+ IconPressFill="#616469"
|
|
|
+ IconWidth="16"
|
|
|
+ MouseDownBackground="{StaticResource color.item-state.sel.bg.lv3}"
|
|
|
+ MouseDownBorderBrush="{StaticResource color.item-state.sel.border.lv3}"
|
|
|
+ MouseOverBackground="{StaticResource color.item-state.hov.bg}" />
|
|
|
+ <customcontrol:PathButton
|
|
|
+ x:Name="BtnMore"
|
|
|
+ Width="32"
|
|
|
+ Height="32"
|
|
|
+ HorizontalContentAlignment="Center"
|
|
|
+ Click="BtnMore_Click"
|
|
|
+ CornerRadius="4"
|
|
|
+ Icon="{StaticResource Ic_MoreButtonPath}"
|
|
|
+ IconFill="#616469"
|
|
|
+ IconHeight="16"
|
|
|
+ IconMouseOver="{StaticResource Ic_MoreButtonPath}"
|
|
|
+ IconMouseOverFill="#616469"
|
|
|
+ IconPress="{StaticResource Ic_MoreButtonPath}"
|
|
|
+ IconPressFill="#616469"
|
|
|
+ IconWidth="16"
|
|
|
+ MouseDownBackground="{StaticResource color.item-state.sel.bg.lv3}"
|
|
|
+ MouseDownBorderBrush="{StaticResource color.item-state.sel.border.lv3}"
|
|
|
+ MouseOverBackground="{StaticResource color.item-state.hov.bg}">
|
|
|
+ <customcontrol:PathButton.ContextMenu>
|
|
|
+ <ContextMenu Name="MenuMore">
|
|
|
+ <ContextMenu.ItemContainerStyle>
|
|
|
+ <Style BasedOn="{StaticResource GlobalMenuItem}" TargetType="MenuItem">
|
|
|
+ <Setter Property="Padding" Value="-25,7,-40,7" />
|
|
|
+ <Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
+ </Style>
|
|
|
+ </ContextMenu.ItemContainerStyle>
|
|
|
+ <MenuItem
|
|
|
+ Name="MenuDeleteAll"
|
|
|
+ Command="{Binding DeleteAllCommand}"
|
|
|
+ Header="Delete All Outline" />
|
|
|
+ <MenuItem
|
|
|
+ Name="MenuExpandAll"
|
|
|
+ Command="{Binding ExpandAllCommand}"
|
|
|
+ CommandParameter="{Binding Outlinelist}"
|
|
|
+ Header="一键展开" />
|
|
|
+ <MenuItem
|
|
|
+ Name="MenuCollapseAll"
|
|
|
+ Command="{Binding CollapseAllCommand}"
|
|
|
+ CommandParameter="{Binding Outlinelist}"
|
|
|
+ Header="一键折叠" />
|
|
|
+ </ContextMenu>
|
|
|
+ </customcontrol:PathButton.ContextMenu>
|
|
|
+ </customcontrol:PathButton>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
|
|
|
<StackPanel
|
|
|
x:Name="FirstOulineLine"
|
|
@@ -129,7 +131,10 @@
|
|
|
x:Name="NoOutlineStackPanel"
|
|
|
VerticalAlignment="Center"
|
|
|
Visibility="{Binding Outlinelist.Count, Converter={StaticResource ListCountToVisible}}">
|
|
|
- <Image Width="128" Height="128" Source="pack://application:,,,/PDF Office;component/Resources/BOTA/no_outline.png" />
|
|
|
+ <Image
|
|
|
+ Width="128"
|
|
|
+ Height="128"
|
|
|
+ Source="pack://application:,,,/PDF Office;component/Resources/BOTA/no_outline.png" />
|
|
|
<TextBlock
|
|
|
Height="22"
|
|
|
HorizontalAlignment="Center"
|
|
@@ -149,6 +154,7 @@
|
|
|
x:Name="OutlineView"
|
|
|
Grid.Row="1"
|
|
|
AllowDrop="True"
|
|
|
+ Background="Transparent"
|
|
|
BorderThickness="0"
|
|
|
Drop="OutlineView_Drop"
|
|
|
ItemsSource="{Binding Outlinelist}"
|
|
@@ -227,7 +233,7 @@
|
|
|
x:Name="Content"
|
|
|
VerticalAlignment="Center"
|
|
|
Text="{Binding Outline.Title}"
|
|
|
- TextTrimming="CharacterEllipsis"
|
|
|
+ TextWrapping="WrapWithOverflow"
|
|
|
Visibility="{Binding IsReName, Mode=TwoWay}" />
|
|
|
<TextBlock
|
|
|
x:Name="PageIndex"
|