123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <UserControl
- x:Class="PDF_Office.Views.ViewContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:Viewer="clr-namespace:ComPDFKitViewer.PdfViewer;assembly=ComPDFKit.Viewer"
- xmlns:cus="clr-namespace:PDF_Office.CustomControl"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:local="clr-namespace:PDF_Office.Views"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:viewmodels="clr-namespace:PDF_Office.ViewModels"
- d:DataContext="{d:DesignInstance Type=viewmodels:ViewContentViewModel}"
- d:DesignHeight="450"
- d:DesignWidth="800"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Loaded">
- <prism:InvokeCommandAction Command="{Binding Load}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- <UserControl.Resources>
- <ResourceDictionary />
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Name="HeadRow" Height="40" />
- <RowDefinition Name="ToolRow" Height="40" />
- <RowDefinition Height="*" />
- <RowDefinition Height="32" />
- </Grid.RowDefinitions>
- <!-- 左边菜单按钮 -->
- <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
- <Button
- Width="16"
- Height="16"
- Margin="8"
- ToolTip="File" />
- <Button
- Width="16"
- Height="16"
- Margin="8"
- ToolTip="Save" />
- <Button
- Width="16"
- Height="16"
- Margin="8"
- ToolTip="Undo" />
- <Button
- Width="16"
- Height="16"
- Margin="8"
- ToolTip="Redo" />
- </StackPanel>
- <!-- 右边菜单按钮 -->
- <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
- <Button
- Width="16"
- Height="16"
- Margin="8"
- ToolTip="Print" />
- <Button
- Width="16"
- Height="16"
- Margin="8"
- ToolTip="Share" />
- <Button
- Width="16"
- Height="16"
- Margin="8"
- ToolTip="Property" />
- </StackPanel>
- <TabControl
- x:Name="ToolTabControl"
- Grid.Row="0"
- Grid.RowSpan="2"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- BorderThickness="0"
- Style="{StaticResource TabControlWithUnderLineStyle}">
- <cus:IconAndTextTabItem
- x:Name="TabItemAnnotation"
- Header="注释"
- Style="{StaticResource TabItem_WithUnderLineStyle}">
- <Grid Grid.Row="1" Height="40" />
- </cus:IconAndTextTabItem>
- <cus:IconAndTextTabItem
- x:Name="TabItemPageEdit"
- Header="页面"
- Style="{StaticResource TabItem_WithUnderLineStyle}" />
- <cus:IconAndTextTabItem
- x:Name="TabItemConvert"
- Header="转换"
- Style="{StaticResource TabItem_WithUnderLineStyle}" />
- <cus:IconAndTextTabItem
- x:Name="TabItemScan"
- Header="扫描和OCR"
- Style="{StaticResource TabItem_WithUnderLineStyle}">
- <Grid Grid.Row="1" Height="40" />
- </cus:IconAndTextTabItem>
- <cus:IconAndTextTabItem
- x:Name="TabItemEdit"
- Height="40"
- Header="编辑"
- Style="{StaticResource TabItem_WithUnderLineStyle}">
- <Grid Grid.Row="1" Height="40" />
- </cus:IconAndTextTabItem>
- <cus:IconAndTextTabItem
- x:Name="TabItemForm"
- Height="40"
- Header="表单"
- Style="{StaticResource TabItem_WithUnderLineStyle}">
- <Grid Grid.Row="1" Height="40" />
- </cus:IconAndTextTabItem>
- <cus:IconAndTextTabItem
- x:Name="TabItemFill"
- Height="40"
- Header="填写与签名"
- Style="{StaticResource TabItem_WithUnderLineStyle}">
- <Grid Grid.Row="1" Height="40" />
- </cus:IconAndTextTabItem>
- <cus:IconAndTextTabItem
- x:Name="TabItemTool"
- Height="40"
- Header="工具"
- Style="{StaticResource TabItem_WithUnderLineStyle}">
- <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>
- <Grid Name="DocumentView" Grid.Row="2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition
- x:Name="BOTACloumn"
- Width="48"
- MinWidth="48"
- MaxWidth="400" />
- <ColumnDefinition Width="12" />
- <ColumnDefinition
- Name="ViewerColumn"
- Width="*"
- MinWidth="200" />
- <ColumnDefinition Width="12" />
- <ColumnDefinition Name="PropertyColumn" Width="0" />
- </Grid.ColumnDefinitions>
- <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="{Binding ViwerRegionName}" />
- <Button Grid.Column="3" />
- <ContentControl Grid.Column="4" prism:RegionManager.RegionName="{Binding PropertyRegionName}" />
- </Grid>
- <local:BottomToolContent Grid.Row="3" />
- <!-- 用于显示页面编辑、水印、背景、标记密文等功能的区域 -->
- <ContentControl
- Name="ContentTool"
- Grid.Row="{Binding GridToolRow}"
- Grid.RowSpan="{Binding GridToolRowSpan}"
- prism:RegionManager.RegionName="{Binding ToolContentRegionName}"
- Visibility="{Binding ToolContentVisible}" />
- <cus:LoadingControl Grid.RowSpan="3" Visibility="{Binding IsLoading}" />
- </Grid>
- </UserControl>
|