Explorar o código

compdfkit(win) - 优化顶部显示细节

liuaoran hai 11 meses
pai
achega
bd9f1e3cc0

+ 5 - 5
Demo/Examples/PDFViewer/MainWindow.xaml

@@ -96,7 +96,7 @@
                 <Path Name="content" VerticalAlignment="Center" HorizontalAlignment="Center" Fill="#FFFFFF">
                     <Path.RenderTransform>
                         <TransformGroup>
-                            <TranslateTransform X="-1" Y="-1"/>
+                            <TranslateTransform X="-1.5" Y="-1"/>
                         </TransformGroup>
                     </Path.RenderTransform>
                     <Path.Data>
@@ -158,7 +158,7 @@
                                 <ColumnDefinition Width="*" />
                                 <ColumnDefinition Width="auto" />
                             </Grid.ColumnDefinitions>
-                            <Border  x:Name="TitleBd"  Width="184"  Height="32" Margin="0,3,0,-2" CornerRadius="5,5,0,0">
+                            <Border  x:Name="TitleBd"  Width="184"  Height="32" Margin="0,3,0,0" CornerRadius="5,5,0,0">
                                 <Grid Background="Transparent">
                                     <Grid.ColumnDefinitions>
                                         <ColumnDefinition Width="auto" />
@@ -167,8 +167,7 @@
                                         <ColumnDefinition Width="auto" />
                                     </Grid.ColumnDefinitions>
                                     <Border x:Name="InnerTitleBd" Grid.ColumnSpan="4" BorderBrush="#5Affffff" CornerRadius="3" BorderThickness="1,0,1,0" Margin="2,1,2,4"></Border>
-                                    <TextBlock  x:Name="TextTitle" Grid.Column="1" MaxWidth="145"  Margin="8,4,0,4" FontWeight="DemiBold" FontFamily="Microsoft YaHei,Microsoft YaHei"  Text="{Binding FileName}"  TextTrimming="WordEllipsis" />
-
+                                    <TextBlock  x:Name="TextTitle" Grid.Column="1" MaxWidth="140"  Margin="8,4,0,4" FontWeight="DemiBold" FontFamily="Microsoft YaHei,Microsoft YaHei"  Text="{Binding FileName}"  TextTrimming="WordEllipsis" />
                                     <Thumb  x:Name="PART_Thumb"  Grid.ColumnSpan="3"  HorizontalAlignment="Stretch"  VerticalContentAlignment="Stretch" Background="Transparent"  FontFamily="Microsoft YaHei,Microsoft YaHei"  ToolTip="{Binding FileName}">
                                         <Thumb.Template>
                                             <ControlTemplate>
@@ -185,6 +184,7 @@
                             <Trigger Property="IsSelected" Value="True">
                                 <Setter TargetName="TitleBd" Property="Background" Value="#FFFFFF" />
                                 <Setter TargetName="TitleBd" Property="BorderThickness" Value="1,1,1,0" />
+                                <Setter TargetName="TitleBd" Property="Margin" Value="0,3,0,-1" />
                                 <Setter TargetName="TextTitle" Property="Foreground" Value="Black" />
                             </Trigger>
                             <Trigger Property="IsMouseOver" Value="True">
@@ -283,7 +283,7 @@
                 <dragablz:TabablzControl.HeaderPrefixContent>
                     <Grid Margin="10,0,0,0">
                         <StackPanel Orientation="Horizontal">
-                            <cpdfcommon:HomePageButton Style="{StaticResource HomePageButtonStyle}" x:Name="HomePageButton" Width="160" IsToggled="False" Toggled="HomePageButton_Toggled" QueryLock="HomePageButton_QueryLock">
+                            <cpdfcommon:HomePageButton Style="{StaticResource HomePageButtonStyle}" x:Name="HomePageButton" Width="170" IsToggled="False" Toggled="HomePageButton_Toggled" QueryLock="HomePageButton_QueryLock">
                                 <Grid>
                                     <StackPanel Orientation="Horizontal">
                                         <Viewbox Width="20" Height="20" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">

+ 1 - 3
Demo/Examples/Samples/AnnotationTest/CS/AnnotationTest.cs

@@ -323,9 +323,7 @@ namespace AnnotationTest
         /// <param name="document"></param>
         /// <returns></returns>
         static private bool DeleteAnnotations(CPDFDocument document)
-        {
-
-
+        { 
             CPDFPage page = document.PageAtIndex(0);
 
             List<CPDFAnnotation> annotList = page.GetAnnotations();