Browse Source

水印-界面

liyijie 2 years ago
parent
commit
de490d34bd
21 changed files with 619 additions and 32 deletions
  1. 48 0
      PDF Office/PDF Office.csproj
  2. 16 0
      PDF Office/ViewModels/EditTools/Watermark/WatermarkCreateBaseContentViewModel.cs
  3. 16 0
      PDF Office/ViewModels/EditTools/Watermark/WatermarkCreateFileContentViewModel.cs
  4. 16 0
      PDF Office/ViewModels/EditTools/Watermark/WatermarkCreateTextContentViewModel.cs
  5. 16 0
      PDF Office/ViewModels/EditTools/Watermark/WatermarkTemplateListBaseContentViewModel.cs
  6. 16 0
      PDF Office/ViewModels/EditTools/Watermark/WatermarkTemplateListFileContentViewModel.cs
  7. 16 0
      PDF Office/ViewModels/EditTools/Watermark/WatermarkTemplateListTextContentViewModel.cs
  8. 20 16
      PDF Office/Views/EditTools/Background/BackgroundContent.xaml
  9. 19 16
      PDF Office/Views/EditTools/Watermark/WatermarkContent.xaml
  10. 53 0
      PDF Office/Views/EditTools/Watermark/WatermarkCreateBaseContent.xaml
  11. 15 0
      PDF Office/Views/EditTools/Watermark/WatermarkCreateBaseContent.xaml.cs
  12. 103 0
      PDF Office/Views/EditTools/Watermark/WatermarkCreateFileContent.xaml
  13. 15 0
      PDF Office/Views/EditTools/Watermark/WatermarkCreateFileContent.xaml.cs
  14. 117 0
      PDF Office/Views/EditTools/Watermark/WatermarkCreateTextContent.xaml
  15. 15 0
      PDF Office/Views/EditTools/Watermark/WatermarkCreateTextContent.xaml.cs
  16. 45 0
      PDF Office/Views/EditTools/Watermark/WatermarkTemplateListBaseContent.xaml
  17. 15 0
      PDF Office/Views/EditTools/Watermark/WatermarkTemplateListBaseContent.xaml.cs
  18. 14 0
      PDF Office/Views/EditTools/Watermark/WatermarkTemplateListFileContent.xaml
  19. 15 0
      PDF Office/Views/EditTools/Watermark/WatermarkTemplateListFileContent.xaml.cs
  20. 14 0
      PDF Office/Views/EditTools/Watermark/WatermarkTemplateListTextContent.xaml
  21. 15 0
      PDF Office/Views/EditTools/Watermark/WatermarkTemplateListTextContent.xaml.cs

+ 48 - 0
PDF Office/PDF Office.csproj

@@ -331,6 +331,12 @@
     <Compile Include="ViewModels\PageEdit\PageEditContentViewModel.cs" />
     <Compile Include="ViewModels\Tools\ToolsBarContentViewModel.cs" />
     <Compile Include="ViewModels\EditTools\Watermark\WatermarkContentViewModel.cs" />
+    <Compile Include="ViewModels\EditTools\Watermark\WatermarkCreateBaseContentViewModel.cs" />
+    <Compile Include="ViewModels\EditTools\Watermark\WatermarkCreateFileContentViewModel.cs" />
+    <Compile Include="ViewModels\EditTools\Watermark\WatermarkCreateTextContentViewModel.cs" />
+    <Compile Include="ViewModels\EditTools\Watermark\WatermarkTemplateListBaseContentViewModel.cs" />
+    <Compile Include="ViewModels\EditTools\Watermark\WatermarkTemplateListFileContentViewModel.cs" />
+    <Compile Include="ViewModels\EditTools\Watermark\WatermarkTemplateListTextContentViewModel.cs" />
     <Compile Include="Views\BOTA\BOTAContent.xaml.cs">
       <DependentUpon>BOTAContent.xaml</DependentUpon>
     </Compile>
@@ -454,6 +460,24 @@
     <Compile Include="Views\EditTools\Watermark\WatermarkContent.xaml.cs">
       <DependentUpon>WatermarkContent.xaml</DependentUpon>
     </Compile>
+    <Compile Include="Views\EditTools\Watermark\WatermarkCreateBaseContent.xaml.cs">
+      <DependentUpon>WatermarkCreateBaseContent.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Views\EditTools\Watermark\WatermarkCreateFileContent.xaml.cs">
+      <DependentUpon>WatermarkCreateFileContent.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Views\EditTools\Watermark\WatermarkCreateTextContent.xaml.cs">
+      <DependentUpon>WatermarkCreateTextContent.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Views\EditTools\Watermark\WatermarkTemplateListBaseContent.xaml.cs">
+      <DependentUpon>WatermarkTemplateListBaseContent.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Views\EditTools\Watermark\WatermarkTemplateListFileContent.xaml.cs">
+      <DependentUpon>WatermarkTemplateListFileContent.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Views\EditTools\Watermark\WatermarkTemplateListTextContent.xaml.cs">
+      <DependentUpon>WatermarkTemplateListTextContent.xaml</DependentUpon>
+    </Compile>
     <Compile Include="Views\HomePanel\CloudDrive\CloudDriveContent.xaml.cs">
       <DependentUpon>CloudDriveContent.xaml</DependentUpon>
     </Compile>
@@ -737,6 +761,30 @@
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
     </Page>
+    <Page Include="Views\EditTools\Watermark\WatermarkCreateBaseContent.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="Views\EditTools\Watermark\WatermarkCreateFileContent.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="Views\EditTools\Watermark\WatermarkCreateTextContent.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="Views\EditTools\Watermark\WatermarkTemplateListBaseContent.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="Views\EditTools\Watermark\WatermarkTemplateListFileContent.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
+    <Page Include="Views\EditTools\Watermark\WatermarkTemplateListTextContent.xaml">
+      <SubType>Designer</SubType>
+      <Generator>MSBuild:Compile</Generator>
+    </Page>
     <Page Include="Views\HomeContent.xaml">
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>

+ 16 - 0
PDF Office/ViewModels/EditTools/Watermark/WatermarkCreateBaseContentViewModel.cs

@@ -0,0 +1,16 @@
+using Prism.Commands;
+using Prism.Mvvm;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace PDF_Office.ViewModels.EditTools.Watermark
+{
+    public class WatermarkCreateBaseContentViewModel : BindableBase
+    {
+        public WatermarkCreateBaseContentViewModel()
+        {
+
+        }
+    }
+}

+ 16 - 0
PDF Office/ViewModels/EditTools/Watermark/WatermarkCreateFileContentViewModel.cs

@@ -0,0 +1,16 @@
+using Prism.Commands;
+using Prism.Mvvm;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace PDF_Office.ViewModels.EditTools.Watermark
+{
+    public class WatermarkCreateFileContentViewModel : BindableBase
+    {
+        public WatermarkCreateFileContentViewModel()
+        {
+
+        }
+    }
+}

+ 16 - 0
PDF Office/ViewModels/EditTools/Watermark/WatermarkCreateTextContentViewModel.cs

@@ -0,0 +1,16 @@
+using Prism.Commands;
+using Prism.Mvvm;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace PDF_Office.ViewModels.EditTools.Watermark
+{
+    public class WatermarkCreateTextContentViewModel : BindableBase
+    {
+        public WatermarkCreateTextContentViewModel()
+        {
+
+        }
+    }
+}

+ 16 - 0
PDF Office/ViewModels/EditTools/Watermark/WatermarkTemplateListBaseContentViewModel.cs

@@ -0,0 +1,16 @@
+using Prism.Commands;
+using Prism.Mvvm;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace PDF_Office.ViewModels.EditTools.Watermark
+{
+    public class WatermarkTemplateListBaseContentViewModel : BindableBase
+    {
+        public WatermarkTemplateListBaseContentViewModel()
+        {
+
+        }
+    }
+}

+ 16 - 0
PDF Office/ViewModels/EditTools/Watermark/WatermarkTemplateListFileContentViewModel.cs

@@ -0,0 +1,16 @@
+using Prism.Commands;
+using Prism.Mvvm;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace PDF_Office.ViewModels.EditTools.Watermark
+{
+    public class WatermarkTemplateListFileContentViewModel : BindableBase
+    {
+        public WatermarkTemplateListFileContentViewModel()
+        {
+
+        }
+    }
+}

+ 16 - 0
PDF Office/ViewModels/EditTools/Watermark/WatermarkTemplateListTextContentViewModel.cs

@@ -0,0 +1,16 @@
+using Prism.Commands;
+using Prism.Mvvm;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace PDF_Office.ViewModels.EditTools.Watermark
+{
+    public class WatermarkTemplateListTextContentViewModel : BindableBase
+    {
+        public WatermarkTemplateListTextContentViewModel()
+        {
+
+        }
+    }
+}

+ 20 - 16
PDF Office/Views/EditTools/Background/BackgroundContent.xaml

@@ -65,26 +65,30 @@
                 <ColumnDefinition Width="260"></ColumnDefinition>
             </Grid.ColumnDefinitions>
             <Grid Grid.Column="0" Background="BurlyWood" >
-                <Grid Height="64" Width="293" HorizontalAlignment="Center"  VerticalAlignment="Bottom"  Panel.ZIndex="1" Background="#323232" Margin="9,9,9,9">
-                    <StackPanel Orientation="Horizontal"  VerticalAlignment="Center">
-                        <StackPanel Orientation="Horizontal">
+                <Border  Height="64" Width="293" HorizontalAlignment="Center"  VerticalAlignment="Bottom"  Panel.ZIndex="1" Margin="9" Background="#323232" CornerRadius="4">
 
-                            <TextBlock Text="-" FontSize="20" Foreground="White" Margin="20,0,20,0"></TextBlock>
-                            <TextBlock Text="+" FontSize="20" Foreground="White" Margin="0,0,39,0"></TextBlock>
-                        </StackPanel>
-                        <StackPanel Orientation="Horizontal">
-                            <TextBlock Text="1" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
-                            <TextBlock Text="/" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
-                            <TextBlock Text="20" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
-                        </StackPanel>
-                        <StackPanel Orientation="Horizontal">
-                            <TextBlock Text="↑" FontSize="20" Foreground="White" Margin="20,0,20,0"></TextBlock>
-                            <TextBlock Text="↓" FontSize="20" Foreground="White"></TextBlock>
+                    <Grid>
+                        <StackPanel Orientation="Horizontal"  VerticalAlignment="Center">
+                            <StackPanel Orientation="Horizontal">
 
+                                <TextBlock Text="-" FontSize="20" Foreground="White" Margin="20,0,20,0"></TextBlock>
+                                <TextBlock Text="+" FontSize="20" Foreground="White" Margin="0,0,39,0"></TextBlock>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal">
+                                <TextBlock Text="1" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
+                                <TextBlock Text="/" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
+                                <TextBlock Text="20" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal">
+                                <TextBlock Text="↑" FontSize="20" Foreground="White" Margin="20,0,20,0"></TextBlock>
+                                <TextBlock Text="↓" FontSize="20" Foreground="White"></TextBlock>
+
+                            </StackPanel>
                         </StackPanel>
-                    </StackPanel>
-                </Grid>
+                    </Grid>
+                </Border>
             </Grid>
+
             <Grid Grid.Column="1" Background="Wheat">
             </Grid>
         </Grid>

+ 19 - 16
PDF Office/Views/EditTools/Watermark/WatermarkContent.xaml

@@ -65,25 +65,28 @@
                 <ColumnDefinition Width="260"></ColumnDefinition>
             </Grid.ColumnDefinitions>
             <Grid Grid.Column="0" Background="DarkSlateBlue" >
-                <Grid Height="64" Width="293" HorizontalAlignment="Center"  VerticalAlignment="Bottom"  Panel.ZIndex="1" Background="#323232" Margin="9,9,9,9">
-                    <StackPanel Orientation="Horizontal"  VerticalAlignment="Center">
-                        <StackPanel Orientation="Horizontal">
+                <Border  Height="64" Width="293" HorizontalAlignment="Center"  VerticalAlignment="Bottom"  Panel.ZIndex="1" Margin="9" Background="#323232" CornerRadius="4">
 
-                            <TextBlock Text="-" FontSize="20" Foreground="White" Margin="20,0,20,0"></TextBlock>
-                            <TextBlock Text="+" FontSize="20" Foreground="White" Margin="0,0,39,0"></TextBlock>
-                        </StackPanel>
-                        <StackPanel Orientation="Horizontal">
-                            <TextBlock Text="1" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
-                            <TextBlock Text="/" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
-                            <TextBlock Text="20" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
-                        </StackPanel>
-                        <StackPanel Orientation="Horizontal">
-                            <TextBlock Text="↑" FontSize="20" Foreground="White" Margin="20,0,20,0"></TextBlock>
-                            <TextBlock Text="↓" FontSize="20" Foreground="White"></TextBlock>
+                    <Grid>
+                        <StackPanel Orientation="Horizontal"  VerticalAlignment="Center">
+                            <StackPanel Orientation="Horizontal">
+
+                                <TextBlock Text="-" FontSize="20" Foreground="White" Margin="20,0,20,0"></TextBlock>
+                                <TextBlock Text="+" FontSize="20" Foreground="White" Margin="0,0,39,0"></TextBlock>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal">
+                                <TextBlock Text="1" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
+                                <TextBlock Text="/" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
+                                <TextBlock Text="20" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
+                            </StackPanel>
+                            <StackPanel Orientation="Horizontal">
+                                <TextBlock Text="↑" FontSize="20" Foreground="White" Margin="20,0,20,0"></TextBlock>
+                                <TextBlock Text="↓" FontSize="20" Foreground="White"></TextBlock>
 
+                            </StackPanel>
                         </StackPanel>
-                    </StackPanel>
-                </Grid>
+                    </Grid>
+                </Border>
             </Grid>
             <Grid Grid.Column="1" Background="DarkBlue">
             </Grid>

+ 53 - 0
PDF Office/Views/EditTools/Watermark/WatermarkCreateBaseContent.xaml

@@ -0,0 +1,53 @@
+<UserControl x:Class="PDF_Office.Views.EditTools.Watermark.WatermarkCreateBaseContent"
+             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:prism="http://prismlibrary.com/"             
+             prism:ViewModelLocator.AutoWireViewModel="True"
+             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
+             mc:Ignorable="d"
+             d:DesignHeight="720"
+             d:DesignWidth="260" >
+    <Grid>
+        <Grid.RowDefinitions>
+            <RowDefinition Height="40"></RowDefinition>
+            <RowDefinition Height="48"></RowDefinition>
+            <RowDefinition></RowDefinition>
+        </Grid.RowDefinitions>
+        <Grid Grid.Row="0">
+            <Button  Height="24" Width="90" HorizontalAlignment="Left" Margin="16,0,0,0">
+                <StackPanel Orientation="Horizontal">
+                    <TextBlock Text="&lt;" FontSize="16"></TextBlock>
+                    <TextBlock Text="创建水印" Margin="8,0,0,0" FontSize="16"></TextBlock>
+                </StackPanel>
+            </Button>
+            <Button  Height="20" Width="64" Margin="0,0,16,0" HorizontalAlignment="Right" >
+                <StackPanel>
+                    <TextBlock Text="保存至模板" FontSize="12" Foreground="#18A0FB"></TextBlock>
+                    <Rectangle Height="2" Fill="#18A0FB"></Rectangle>
+                </StackPanel>
+            </Button>
+        </Grid>
+        <Grid Grid.Row="1" Margin="16,0,16,0">
+            <Grid.ColumnDefinitions>
+                <ColumnDefinition></ColumnDefinition>
+                <ColumnDefinition></ColumnDefinition>
+            </Grid.ColumnDefinitions>
+            <Button Grid.Column="0">
+                <StackPanel Orientation="Vertical"  >
+                    <TextBlock Text="颜色" FontSize="18"></TextBlock>
+                </StackPanel>
+
+            </Button>
+            <Button Grid.Column="1">
+                <StackPanel Orientation="Vertical"  >
+                    <TextBlock Text="文件" FontSize="18" VerticalAlignment="Center"></TextBlock>
+                </StackPanel>
+            </Button>
+        </Grid>
+        <Grid Grid.Row="2">
+
+        </Grid>
+    </Grid>
+</UserControl>
+

+ 15 - 0
PDF Office/Views/EditTools/Watermark/WatermarkCreateBaseContent.xaml.cs

@@ -0,0 +1,15 @@
+using System.Windows.Controls;
+
+namespace PDF_Office.Views.EditTools.Watermark
+{
+    /// <summary>
+    /// Interaction logic for WatermarkCreateBaseContent
+    /// </summary>
+    public partial class WatermarkCreateBaseContent : UserControl
+    {
+        public WatermarkCreateBaseContent()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 103 - 0
PDF Office/Views/EditTools/Watermark/WatermarkCreateFileContent.xaml

@@ -0,0 +1,103 @@
+<UserControl x:Class="PDF_Office.Views.EditTools.Watermark.WatermarkCreateFileContent"
+            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:prism="http://prismlibrary.com/"             
+             prism:ViewModelLocator.AutoWireViewModel="True"
+             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+             mc:Ignorable="d"
+             d:DesignHeight="632"
+             d:DesignWidth="260" >
+    <Grid>
+        <Grid.RowDefinitions>
+            <RowDefinition Height="48"/>
+            <RowDefinition Height="190"/>
+            <RowDefinition Height="200"/>
+            <RowDefinition Height="74"/>
+        </Grid.RowDefinitions>
+        <Grid Grid.Row="0" Width="228" Margin="0,16,0,0">
+            <StackPanel Orientation="Horizontal">
+                <TextBlock Width="188"></TextBlock>
+                <Button Content="+" Width="32" Height="32" Margin="8,0,0,0"></Button>
+            </StackPanel>
+        </Grid>
+        <Grid Grid.Row="1" Margin="0,23,0,0" Width="228">
+            <StackPanel Orientation="Vertical">
+                <TextBlock Text="外观" FontSize="12" Foreground="#666666" Height="20" Width="24" HorizontalAlignment="Left"></TextBlock>
+                <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
+                    <StackPanel Orientation="Horizontal">
+                        <TextBlock Width="24" Height="24" Background="CadetBlue"></TextBlock>
+                        <ComboBox Width="66" Height="32" Margin="8,0,0,0"></ComboBox>
+                    </StackPanel>
+                    <StackPanel Orientation="Horizontal" Margin="28,0,0,0">
+                        <TextBlock Width="24" Height="24" Background="CadetBlue"></TextBlock>
+                        <ComboBox Width="66" Height="32" Margin="8,0,0,0"></ComboBox>
+                    </StackPanel>
+                </StackPanel>
+                <ComboBox Height="32" Margin="0,8,0,0"></ComboBox>
+                <CheckBox Margin="0,11,0,0" >
+                    <TextBlock Text="相对于页面目标的比例" Width="144" Height="22" FontSize="14"/>
+                </CheckBox>
+                <ComboBox Width="66" Height="32" HorizontalAlignment="Left" Margin="0,9,0,0"></ComboBox>
+            </StackPanel>
+        </Grid>
+        <Grid  Grid.Row="2"  Margin="0,10,0,0" Width="228">
+            <StackPanel>
+                <TextBlock Text="位置" FontSize="12" Foreground="#666666" Height="20" Width="24" HorizontalAlignment="Left"></TextBlock>
+                <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
+                    <Grid Width="74" Height="74">
+                        <Grid.ColumnDefinitions>
+                            <ColumnDefinition></ColumnDefinition>
+                            <ColumnDefinition></ColumnDefinition>
+                            <ColumnDefinition></ColumnDefinition>
+                        </Grid.ColumnDefinitions>
+                        <Grid.RowDefinitions>
+                            <RowDefinition></RowDefinition>
+                            <RowDefinition></RowDefinition>
+                            <RowDefinition></RowDefinition>
+                        </Grid.RowDefinitions>
+                        <Button Grid.Column="0" Grid.Row="0"></Button>
+                        <Button Grid.Column="1" Grid.Row="0"></Button>
+                        <Button Grid.Column="2" Grid.Row="0"></Button>
+                        <Button Grid.Column="0" Grid.Row="1"></Button>
+                        <Button Grid.Column="1" Grid.Row="1" Background="Black"></Button>
+                        <Button Grid.Column="2" Grid.Row="1"></Button>
+                        <Button Grid.Column="0" Grid.Row="2"></Button>
+                        <Button Grid.Column="1" Grid.Row="2"></Button>
+                        <Button Grid.Column="2" Grid.Row="2"></Button>
+                    </Grid>
+                    <StackPanel Orientation="Vertical" Margin="70,0,0,0">
+                        <StackPanel Orientation="Horizontal">
+                            <TextBlock Text="X"  Width="9" Height="20" VerticalAlignment="Center"/>
+                            <TextBox Width="66" Height="32" Margin="9,0,0,0"></TextBox>
+                        </StackPanel>
+                        <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
+                            <TextBlock Text="Y" Width="9" Height="20" VerticalAlignment="Center"/>
+                            <TextBox Width="66" Height="32" Margin="9,0,0,0"></TextBox>
+                        </StackPanel>
+                    </StackPanel>
+
+                </StackPanel>
+                <CheckBox Margin="0,24,0,0" >
+                    <TextBlock Text="平铺" Width="144" Height="22" FontSize="14"/>
+                </CheckBox>
+                <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
+                    <StackPanel Orientation="Horizontal">
+                        <TextBlock Text="" Background="Aquamarine" Width="25" Height="9" VerticalAlignment="Center"/>
+                        <TextBox Width="66" Height="32" Margin="9,0,0,0"></TextBox>
+                    </StackPanel>
+                    <StackPanel Orientation="Horizontal" Margin="32,0,0,0">
+                        <TextBlock Background="AntiqueWhite" Width="9" Height="25" VerticalAlignment="Center"/>
+                        <TextBox Width="66" Height="32" Margin="9,0,0,0"></TextBox>
+                    </StackPanel>
+                </StackPanel>
+            </StackPanel>
+        </Grid>
+        <Grid Width="228" Grid.Row="4"  Margin="0,10,0,4">
+            <StackPanel Orientation="Vertical">
+                <TextBlock Text="页面范围" FontSize="12" Foreground="#666666" Height="20" Width="48" HorizontalAlignment="Left"></TextBlock>
+                <ComboBox Height="32" Margin="0,8,0,0"></ComboBox>
+            </StackPanel>
+        </Grid>
+    </Grid>
+</UserControl>

+ 15 - 0
PDF Office/Views/EditTools/Watermark/WatermarkCreateFileContent.xaml.cs

@@ -0,0 +1,15 @@
+using System.Windows.Controls;
+
+namespace PDF_Office.Views.EditTools.Watermark
+{
+    /// <summary>
+    /// Interaction logic for WatermarkCreateFileContent
+    /// </summary>
+    public partial class WatermarkCreateFileContent : UserControl
+    {
+        public WatermarkCreateFileContent()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 117 - 0
PDF Office/Views/EditTools/Watermark/WatermarkCreateTextContent.xaml

@@ -0,0 +1,117 @@
+<UserControl x:Class="PDF_Office.Views.EditTools.Watermark.WatermarkCreateTextContent"
+             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:prism="http://prismlibrary.com/"             
+             prism:ViewModelLocator.AutoWireViewModel="True"
+             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+             mc:Ignorable="d"
+             d:DesignHeight="632"
+             d:DesignWidth="260" >
+    <Grid>
+        <Grid.RowDefinitions>
+            <RowDefinition Height="168"/>
+            <RowDefinition Height="190"/>
+            <RowDefinition Height="200"/>
+            <RowDefinition Height="74"/>
+        </Grid.RowDefinitions>
+        <Grid Grid.Row="0" Width="228">
+            <StackPanel Orientation="Vertical">
+                <TextBox Height="72" Margin="0,16,0,0"></TextBox>
+                <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
+                    <ComboBox Width="154" Height="32"></ComboBox>
+                    <ComboBox Width="66" Height="32" Margin="8,0,0,0"></ComboBox>
+                </StackPanel>
+                <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
+                    <StackPanel Orientation="Horizontal">
+                        <Button Width="34.67" Height="32"></Button>
+                        <Button Width="34.67" Height="32"></Button>
+                        <Button Width="34.67" Height="32"></Button>
+                    </StackPanel>
+                    <StackPanel Orientation="Horizontal" Margin="8,0,0,0">
+                        <Button Width="33" Height="32"></Button>
+                        <Button Width="33" Height="32"></Button>
+                    </StackPanel>
+                </StackPanel>
+            </StackPanel>
+        </Grid>
+        <Grid Grid.Row="1" Margin="0,16,0,0" Width="228">
+            <StackPanel Orientation="Vertical">
+                <TextBlock Text="外观" FontSize="12" Foreground="#666666" Height="20" Width="24" HorizontalAlignment="Left"></TextBlock>
+                <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
+                    <StackPanel Orientation="Horizontal">
+                        <TextBlock Width="24" Height="24" Background="CadetBlue"></TextBlock>
+                        <ComboBox Width="66" Height="32" Margin="8,0,0,0"></ComboBox>
+                    </StackPanel>
+                    <StackPanel Orientation="Horizontal" Margin="28,0,0,0">
+                        <TextBlock Width="24" Height="24" Background="CadetBlue"></TextBlock>
+                        <ComboBox Width="66" Height="32" Margin="8,0,0,0"></ComboBox>
+                    </StackPanel>
+                </StackPanel>
+                <ComboBox Height="32" Margin="0,8,0,0"></ComboBox>
+                <CheckBox Margin="0,11,0,0" >
+                    <TextBlock Text="相对于页面目标的比例" Width="144" Height="22" FontSize="14"/>
+                </CheckBox>
+                <ComboBox Width="66" Height="32" HorizontalAlignment="Left" Margin="0,9,0,0"></ComboBox>
+            </StackPanel>
+        </Grid>
+        <Grid  Grid.Row="2"  Margin="0,10,0,0" Width="228">
+            <StackPanel>
+                <TextBlock Text="位置" FontSize="12" Foreground="#666666" Height="20" Width="48" HorizontalAlignment="Left"></TextBlock>
+                <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
+                    <Grid Width="74" Height="74">
+                        <Grid.ColumnDefinitions>
+                            <ColumnDefinition></ColumnDefinition>
+                            <ColumnDefinition></ColumnDefinition>
+                            <ColumnDefinition></ColumnDefinition>
+                        </Grid.ColumnDefinitions>
+                        <Grid.RowDefinitions>
+                            <RowDefinition></RowDefinition>
+                            <RowDefinition></RowDefinition>
+                            <RowDefinition></RowDefinition>
+                        </Grid.RowDefinitions>
+                        <Button Grid.Column="0" Grid.Row="0"></Button>
+                        <Button Grid.Column="1" Grid.Row="0"></Button>
+                        <Button Grid.Column="2" Grid.Row="0"></Button>
+                        <Button Grid.Column="0" Grid.Row="1"></Button>
+                        <Button Grid.Column="1" Grid.Row="1" Background="Black"></Button>
+                        <Button Grid.Column="2" Grid.Row="1"></Button>
+                        <Button Grid.Column="0" Grid.Row="2"></Button>
+                        <Button Grid.Column="1" Grid.Row="2"></Button>
+                        <Button Grid.Column="2" Grid.Row="2"></Button>
+                    </Grid>
+                    <StackPanel Orientation="Vertical" Margin="70,0,0,0">
+                        <StackPanel Orientation="Horizontal">
+                            <TextBlock Text="X"  Width="9" Height="20" VerticalAlignment="Center"/>
+                            <TextBox Width="66" Height="32" Margin="9,0,0,0"></TextBox>
+                        </StackPanel>
+                        <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
+                            <TextBlock Text="Y" Width="9" Height="20" VerticalAlignment="Center"/>
+                            <TextBox Width="66" Height="32" Margin="9,0,0,0"></TextBox>
+                        </StackPanel>
+                    </StackPanel>
+                    
+                </StackPanel>
+                <CheckBox Margin="0,24,0,0" >
+                    <TextBlock Text="平铺" Width="144" Height="22" FontSize="14"/>
+                </CheckBox>
+                <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
+                    <StackPanel Orientation="Horizontal">
+                        <TextBlock Text="" Background="Aquamarine" Width="25" Height="9" VerticalAlignment="Center"/>
+                        <TextBox Width="66" Height="32" Margin="9,0,0,0"></TextBox>
+                    </StackPanel>
+                    <StackPanel Orientation="Horizontal" Margin="32,0,0,0">
+                        <TextBlock Background="AntiqueWhite" Width="9" Height="25" VerticalAlignment="Center"/>
+                        <TextBox Width="66" Height="32" Margin="9,0,0,0"></TextBox>
+                    </StackPanel>
+                </StackPanel>
+            </StackPanel>
+        </Grid>
+        <Grid Width="228" Grid.Row="4"  Margin="0,10,0,4">
+            <StackPanel Orientation="Vertical">
+                <TextBlock Text="页面范围" FontSize="12" Foreground="#666666" Height="20" Width="24" HorizontalAlignment="Left"></TextBlock>
+                <ComboBox Height="32" Margin="0,8,0,0"></ComboBox>
+            </StackPanel>
+        </Grid>
+    </Grid>
+</UserControl>

+ 15 - 0
PDF Office/Views/EditTools/Watermark/WatermarkCreateTextContent.xaml.cs

@@ -0,0 +1,15 @@
+using System.Windows.Controls;
+
+namespace PDF_Office.Views.EditTools.Watermark
+{
+    /// <summary>
+    /// Interaction logic for WatermarkCreateTextContent
+    /// </summary>
+    public partial class WatermarkCreateTextContent : UserControl
+    {
+        public WatermarkCreateTextContent()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 45 - 0
PDF Office/Views/EditTools/Watermark/WatermarkTemplateListBaseContent.xaml

@@ -0,0 +1,45 @@
+<UserControl x:Class="PDF_Office.Views.EditTools.Watermark.WatermarkTemplateListBaseContent"
+             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:prism="http://prismlibrary.com/"             
+             prism:ViewModelLocator.AutoWireViewModel="True"
+              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
+             mc:Ignorable="d"
+             d:DesignHeight="720"
+             d:DesignWidth="260">
+    <Grid>
+        <Grid.RowDefinitions>
+            <RowDefinition Height="48"/>
+            <RowDefinition Height="48"/>
+            <RowDefinition/>
+        </Grid.RowDefinitions>
+        <Grid Grid.Row="0">
+                <TextBlock Width="32" Height="24" Text="水印" FontSize="16" Margin="16,0,16,0" HorizontalAlignment="Left"></TextBlock>
+                <StackPanel HorizontalAlignment="Right" Orientation="Horizontal" >
+                    <Button Height="20" Width="20"></Button>
+                    <Button Height="20" Width="20" Margin="16,0,6,0"></Button>
+                </StackPanel>
+        </Grid>
+        <Grid Grid.Row="1" Margin="16,0,16,0">
+            <Grid.ColumnDefinitions>
+                <ColumnDefinition></ColumnDefinition>
+                <ColumnDefinition></ColumnDefinition>
+            </Grid.ColumnDefinitions>
+            <Button Grid.Column="0">
+                <StackPanel Orientation="Vertical"  >
+                    <TextBlock Text="颜色" FontSize="18"></TextBlock>
+                </StackPanel>
+
+            </Button>
+            <Button Grid.Column="1">
+                <StackPanel Orientation="Vertical"  >
+                    <TextBlock Text="文件" FontSize="18" VerticalAlignment="Center"></TextBlock>
+                </StackPanel>
+            </Button>
+        </Grid>
+        <Grid Grid.Row="2">
+
+        </Grid>
+    </Grid>
+</UserControl>

+ 15 - 0
PDF Office/Views/EditTools/Watermark/WatermarkTemplateListBaseContent.xaml.cs

@@ -0,0 +1,15 @@
+using System.Windows.Controls;
+
+namespace PDF_Office.Views.EditTools.Watermark
+{
+    /// <summary>
+    /// Interaction logic for WatermarkTemplateListBaseContent
+    /// </summary>
+    public partial class WatermarkTemplateListBaseContent : UserControl
+    {
+        public WatermarkTemplateListBaseContent()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 14 - 0
PDF Office/Views/EditTools/Watermark/WatermarkTemplateListFileContent.xaml

@@ -0,0 +1,14 @@
+<UserControl x:Class="PDF_Office.Views.EditTools.Watermark.WatermarkTemplateListFileContent"
+             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:prism="http://prismlibrary.com/"             
+             prism:ViewModelLocator.AutoWireViewModel="True"
+              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
+             mc:Ignorable="d"
+             d:DesignHeight="632"
+             d:DesignWidth="260" >
+    <Grid>
+            
+    </Grid>
+</UserControl>

+ 15 - 0
PDF Office/Views/EditTools/Watermark/WatermarkTemplateListFileContent.xaml.cs

@@ -0,0 +1,15 @@
+using System.Windows.Controls;
+
+namespace PDF_Office.Views.EditTools.Watermark
+{
+    /// <summary>
+    /// Interaction logic for WatermarkTemplateListFileContent
+    /// </summary>
+    public partial class WatermarkTemplateListFileContent : UserControl
+    {
+        public WatermarkTemplateListFileContent()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 14 - 0
PDF Office/Views/EditTools/Watermark/WatermarkTemplateListTextContent.xaml

@@ -0,0 +1,14 @@
+<UserControl x:Class="PDF_Office.Views.EditTools.Watermark.WatermarkTemplateListTextContent"
+              xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:prism="http://prismlibrary.com/"             
+             prism:ViewModelLocator.AutoWireViewModel="True"
+              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
+             mc:Ignorable="d"
+             d:DesignHeight="632"
+             d:DesignWidth="260" >
+    <Grid>
+            
+    </Grid>
+</UserControl>

+ 15 - 0
PDF Office/Views/EditTools/Watermark/WatermarkTemplateListTextContent.xaml.cs

@@ -0,0 +1,15 @@
+using System.Windows.Controls;
+
+namespace PDF_Office.Views.EditTools.Watermark
+{
+    /// <summary>
+    /// Interaction logic for WatermarkTemplateListTextContent
+    /// </summary>
+    public partial class WatermarkTemplateListTextContent : UserControl
+    {
+        public WatermarkTemplateListTextContent()
+        {
+            InitializeComponent();
+        }
+    }
+}