|
@@ -23,8 +23,7 @@
|
|
|
<RowDefinition Height="40"></RowDefinition>
|
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
|
</Grid.RowDefinitions>
|
|
|
-
|
|
|
- <!--顶部工具栏-->
|
|
|
+
|
|
|
<cpdftools:CPDFTitleBarControl x:Name="CPDFTitleBarControl" Visibility="Visible" Loaded="CPDFTitleBarControl_Loaded" CanSave="{Binding CanSave,Mode=OneWay}" Margin="2 0 0 0"></cpdftools:CPDFTitleBarControl>
|
|
|
|
|
|
<Grid Grid.Row="1">
|
|
@@ -34,10 +33,8 @@
|
|
|
<ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
</Grid.ColumnDefinitions>
|
|
|
<Border Height="1" Background="LightGray" VerticalAlignment="Bottom" Grid.ColumnSpan="3"/>
|
|
|
-
|
|
|
- <!--左侧工具栏-->
|
|
|
- <StackPanel Orientation="Horizontal" Height="40" Margin="20,0,0,0">
|
|
|
- <!--打开文件-->
|
|
|
+
|
|
|
+ <StackPanel Orientation="Horizontal" Height="40" Margin="20,0,0,0">
|
|
|
<Button BorderThickness="0" VerticalContentAlignment="Center" Width="30" Height="30" Style="{StaticResource LightButtonStyle}" Background="Transparent" Click="OpenFile_Click">
|
|
|
<Button.Content>
|
|
|
<Viewbox Width="20" Height="20">
|
|
@@ -66,8 +63,7 @@
|
|
|
<ToolTip Content="Open..."></ToolTip>
|
|
|
</Button.ToolTip>
|
|
|
</Button>
|
|
|
-
|
|
|
- <!--保存文件-->
|
|
|
+
|
|
|
<Button BorderThickness="0" VerticalContentAlignment="Center" Margin="10,0,0,0" Width="30" Height="30" Style="{StaticResource LightButtonStyle}" Background="Transparent"
|
|
|
Click="SaveFileBtn_Click" IsEnabled="{Binding CanSave,Mode=OneWay}">
|
|
|
<Button.Content>
|
|
@@ -96,8 +92,7 @@
|
|
|
<ToolTip Content="Save"></ToolTip>
|
|
|
</Button.ToolTip>
|
|
|
</Button>
|
|
|
-
|
|
|
- <!--工具栏展开收缩-->
|
|
|
+
|
|
|
<ToggleButton x:Name="LeftToolPanelButton" Margin="13,0,0,0" BorderThickness="0" Width="30" Height="30" Style="{StaticResource ToggleButtonStyle}" Background="Transparent" Click="LeftToolPanelButton_Click">
|
|
|
<ToggleButton.Content>
|
|
|
<Path Fill="#43474D" Width="30" Height="30">
|
|
@@ -115,8 +110,7 @@
|
|
|
|
|
|
<cpdftools:CPDFScalingControl x:Name="CPDFSaclingControl"></cpdftools:CPDFScalingControl>
|
|
|
</StackPanel>
|
|
|
-
|
|
|
- <!--中间工具栏-->
|
|
|
+
|
|
|
<ComboBox Name="ModeComboBox" Style="{StaticResource ComboBoxStyle1}" Width="140" Height="26" Grid.Column="1" HorizontalAlignment="Center" FontSize="14" Foreground="#001A4E" SelectedIndex="0" SelectionChanged="ComboBox_SelectionChanged">
|
|
|
<ComboBoxItem>Viewer</ComboBoxItem>
|
|
|
<ComboBoxItem>Annotations</ComboBoxItem>
|
|
@@ -124,11 +118,9 @@
|
|
|
<ComboBoxItem>Forms</ComboBoxItem>
|
|
|
<ComboBoxItem>Docs Editor</ComboBoxItem>
|
|
|
</ComboBox>
|
|
|
-
|
|
|
- <!--右侧工具栏-->
|
|
|
+
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="2">
|
|
|
-
|
|
|
- <!--搜索按钮-->
|
|
|
+
|
|
|
<Button x:Name="SearchButton" BorderThickness="0" Width="40" Height="40" Style="{StaticResource LightButtonStyle}" Background="Transparent" Click="ExpandSearchBtn_Click">
|
|
|
<Button.Content>
|
|
|
<Path Fill="#43474D">
|
|
@@ -145,8 +137,7 @@
|
|
|
<ToolTip Content="Search"></ToolTip>
|
|
|
</Button.ToolTip>
|
|
|
</Button>
|
|
|
-
|
|
|
- <!--页面显示-->
|
|
|
+
|
|
|
<ToggleButton Name="ViewSettingBtn" BorderThickness="0" Width="40" Height="40" Style="{StaticResource ToggleButtonStyle}" Background="Transparent" Click="ViewSettingBtn_Click">
|
|
|
<ToggleButton.Content>
|
|
|
<Path Stroke="#43474D" VerticalAlignment="Center" StrokeThickness="2">
|
|
@@ -166,8 +157,7 @@
|
|
|
<ToolTip Content="Page Display"></ToolTip>
|
|
|
</ToggleButton.ToolTip>
|
|
|
</ToggleButton>
|
|
|
-
|
|
|
- <!--右侧属性面板开关-->
|
|
|
+
|
|
|
<ToggleButton x:Name="RightPanelButton" BorderThickness="0" Width="40" Height="40" Style="{StaticResource ToggleButtonStyle}" Background="Transparent" Click="RightPanelButton_Click">
|
|
|
<ToggleButton.Content>
|
|
|
<Path Fill="#43474D" Width="30" Height="30">
|
|
@@ -180,8 +170,7 @@
|
|
|
<ToolTip Content="Properties"></ToolTip>
|
|
|
</ToggleButton.ToolTip>
|
|
|
</ToggleButton>
|
|
|
-
|
|
|
- <!--页面信息-->
|
|
|
+
|
|
|
<Button BorderThickness="0" Width="40" Height="40" Style="{StaticResource LightButtonStyle}" Background="Transparent" Click="PageInfoBtn_Click">
|
|
|
<Button.Content>
|
|
|
<Path Fill="#43474D" VerticalAlignment="Center">
|
|
@@ -220,8 +209,7 @@
|
|
|
<cpdftools:CPDFAnnotationBarControl x:Name="AnnotationBarControl" Height="44" Loaded="AnnotationBarControl_Loaded" Unloaded="AnnotationBarControl_Unloaded" Visibility="Collapsed"/>
|
|
|
<cpdftools:CPDFFormBarControl x:Name="FormBarControl" Height="44" Visibility="Collapsed"></cpdftools:CPDFFormBarControl>
|
|
|
<Border Name="PDFEditTool" Background="#F2F3F5" Visibility="Collapsed">
|
|
|
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
- <!--文字编辑按钮-->
|
|
|
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
<ToggleButton Style="{StaticResource ToggleButtonStyle}" Name="PDFTextEditButton" BorderThickness="0" Padding="10,5,10,5" Click="PDFTextEditButton_Click" Width="99" Height="40">
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
<Path Fill="#273C62" VerticalAlignment="Center">
|
|
@@ -236,8 +224,7 @@
|
|
|
<ToolTip Content="Text"></ToolTip>
|
|
|
</ToggleButton.ToolTip>
|
|
|
</ToggleButton>
|
|
|
-
|
|
|
- <!--图片编辑按钮-->
|
|
|
+
|
|
|
<ToggleButton Style="{StaticResource ToggleButtonStyle}" Name="PDFImageEditButton" BorderThickness="0" Padding="10,5,10,5" Margin="10,0,0,0" Click="PDFImageEditButton_Click">
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
<Path Fill="#273C62" VerticalAlignment="Center">
|
|
@@ -258,8 +245,7 @@
|
|
|
</Grid>
|
|
|
|
|
|
<StackPanel x:Name="UndoRedoStackPanel" Orientation="Horizontal" Visibility="Visible">
|
|
|
- <Line Height="40" Stroke="#D5D6D8" StrokeThickness="2" X1="0" Y1="10" X2="0" Y2="30" Margin="8,0,8,0" />
|
|
|
- <!--Undo Button-->
|
|
|
+ <Line Height="40" Stroke="#D5D6D8" StrokeThickness="2" X1="0" Y1="10" X2="0" Y2="30" Margin="8,0,8,0" />
|
|
|
<Button Name="UndoBtn" Style="{StaticResource LightButtonStyle}" BorderThickness="0" Width="40" Height="40" IsEnabled="{Binding CanUndo,Mode=OneWay}" Click="UndoBtn_Click"
|
|
|
Background="Transparent">
|
|
|
<Path x:Name="UndoPath" IsEnabled="{Binding CanUndo,Mode=OneWay}">
|
|
@@ -284,8 +270,7 @@
|
|
|
<Button.ToolTip>
|
|
|
<ToolTip Content="Undo"></ToolTip>
|
|
|
</Button.ToolTip>
|
|
|
- </Button>
|
|
|
- <!--Redo Button-->
|
|
|
+ </Button>
|
|
|
<Button Style="{StaticResource LightButtonStyle}" BorderThickness="0" Width="40" Height="40" Margin="10,0,0,0" IsEnabled="{Binding CanRedo,Mode=OneWay}" Click="RedoBtn_Click"
|
|
|
Background="Transparent">
|
|
|
<Path IsEnabled="{Binding CanRedo,Mode=OneWay}">
|
|
@@ -315,12 +300,10 @@
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
</Border>
|
|
|
-
|
|
|
- <!--工具栏展开-->
|
|
|
+
|
|
|
|
|
|
<cpdftools:CPDFBOTABarControl Grid.Row="1" Visibility="Collapsed" Name="BotaSideTool"/>
|
|
|
-
|
|
|
- <!--拖动调节控件大小-->
|
|
|
+
|
|
|
<GridSplitter Name="Splitter" Grid.Row="1" Grid.Column="1" Width="15" ResizeBehavior="PreviousAndNext" Visibility="Collapsed">
|
|
|
<GridSplitter.Template>
|
|
|
<ControlTemplate TargetType="{x:Type GridSplitter}">
|
|
@@ -347,20 +330,16 @@
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition></ColumnDefinition>
|
|
|
<ColumnDefinition Width="auto"></ColumnDefinition>
|
|
|
- </Grid.ColumnDefinitions>
|
|
|
- <!--PDFViewer-->
|
|
|
- <Border x:Name="PDFGrid" Background="#CECECE"></Border>
|
|
|
- <!--页码工具-->
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Border x:Name="PDFGrid" Background="#CECECE"></Border>
|
|
|
<cpdfcommon:PageNumberControl Grid.Row="1" Name="FloatPageTool" HorizontalAlignment="Center" VerticalAlignment="Bottom" Margin="0,0,0,20"></cpdfcommon:PageNumberControl>
|
|
|
-
|
|
|
- <!--右侧面板-->
|
|
|
+
|
|
|
<Border Grid.Column="1" Name="PropertyContainer" Visibility="Collapsed"></Border>
|
|
|
</Grid>
|
|
|
</Grid>
|
|
|
</Grid>
|
|
|
<Border Name="PopupBorder" Background="#A0000000" Visibility="Collapsed" Grid.RowSpan="3" Grid.ColumnSpan="2">
|
|
|
- <Grid>
|
|
|
- <!--文件信息-->
|
|
|
+ <Grid>
|
|
|
<Grid Name="FileInfoUI" Width="422" Height="680" HorizontalAlignment="Center" VerticalAlignment="Center" Background="White" Visibility="Collapsed">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
@@ -382,8 +361,7 @@
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
<cpdftools:CPDFInfoControl Grid.Row="1" Margin="25,10,25,0" Grid.ColumnSpan="2" Name="FileInfoControl"></cpdftools:CPDFInfoControl>
|
|
|
- </Grid>
|
|
|
- <!--密码验证-->
|
|
|
+ </Grid>
|
|
|
<cpdfcommon:PasswordDialog x:Name="PasswordUI" Visibility="Collapsed"></cpdfcommon:PasswordDialog>
|
|
|
</Grid>
|
|
|
</Border>
|