Procházet zdrojové kódy

标记密文-补充标记密文弹窗

ZhouJieSheng před 2 roky
rodič
revize
50494e969c

+ 12 - 0
PDF Office/Views/Dialog/Redaction/MarkSettingDialog.xaml

@@ -0,0 +1,12 @@
+<UserControl x:Class="PDF_Office.Views.Dialog.Redaction.MarkSettingDialog"
+             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
+             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
+             xmlns:local="clr-namespace:PDF_Office.Views.Dialog.Redaction"
+             mc:Ignorable="d" 
+             d:DesignHeight="450" d:DesignWidth="800">
+    <Grid>
+            
+    </Grid>
+</UserControl>

+ 28 - 0
PDF Office/Views/Dialog/Redaction/MarkSettingDialog.xaml.cs

@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace PDF_Office.Views.Dialog.Redaction
+{
+    /// <summary>
+    /// MarkSettingDialog.xaml 的交互逻辑
+    /// </summary>
+    public partial class MarkSettingDialog : UserControl
+    {
+        public MarkSettingDialog()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 61 - 0
PDF Office/Views/Dialog/Redaction/PageMarkDialog.xaml

@@ -0,0 +1,61 @@
+<UserControl
+    x:Class="PDF_Office.Views.Dialog.Redaction.PageMarkDialog"
+    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+    xmlns:cus="clr-namespace:PDF_Office.CustomControl"
+    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+    xmlns:local="clr-namespace:PDF_Office.Views.Dialog.Redaction"
+    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+    xmlns:prism="http://prismlibrary.com/"
+    Width="432"
+    Height="296"
+    d:DesignHeight="450"
+    d:DesignWidth="800"
+    prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
+    prism:ViewModelLocator.AutoWireViewModel="True"
+    Background="{StaticResource color.sys.layout.anti}"
+    mc:Ignorable="d">
+    <cus:DialogContent Header="Mark Page Range">
+        <StackPanel Margin="16,0">
+            <RadioButton Height="22" IsChecked="True" VerticalContentAlignment="Center" Content="Mark current page" />
+            <RadioButton Height="22" VerticalContentAlignment="Center" Margin="0,8" Content="Mark all page" />
+            <RadioButton Height="22" VerticalContentAlignment="Center" Content="Mark odd page" />
+            <RadioButton Height="22" VerticalContentAlignment="Center" Margin="0,8" Content="Mark even page" />
+            <RadioButton Name="RbtnCustomPage" Height="22" VerticalContentAlignment="Center" Content="Mark specific page range" />
+            <StackPanel
+                Margin="0,8"
+                HorizontalAlignment="Left"
+                VerticalAlignment="Center"
+                Orientation="Horizontal">
+                <cus:TextBoxEx
+                    Width="228"
+                    Height="32"
+                    CornerRadius="4"
+                    IsEnabled="{Binding ElementName=RbtnCustomPage, Path=IsChecked}"
+                    PlaceholderText="e.g. 1,3-5,10" />
+                <TextBlock
+                    Margin="8,0,0,0"
+                    VerticalAlignment="Center"
+                    Text="/" />
+            </StackPanel>
+        </StackPanel>
+        <cus:DialogContent.BottmBar>
+            <StackPanel
+                Margin="16,0"
+                HorizontalAlignment="Right"
+                Orientation="Horizontal">
+                <Button
+                    Width="80"
+                    Height="32"
+                    Content="Apply"
+                    Style="{StaticResource Btn.cta}" />
+                <Button
+                    Width="80"
+                    Height="32"
+                    Margin="16,0,0,0"
+                    Content="Cancel"
+                    Style="{StaticResource btn.sec}" />
+            </StackPanel>
+        </cus:DialogContent.BottmBar>
+    </cus:DialogContent>
+</UserControl>

+ 28 - 0
PDF Office/Views/Dialog/Redaction/PageMarkDialog.xaml.cs

@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace PDF_Office.Views.Dialog.Redaction
+{
+    /// <summary>
+    /// PageMarkDialog.xaml 的交互逻辑
+    /// </summary>
+    public partial class PageMarkDialog : UserControl
+    {
+        public PageMarkDialog()
+        {
+            InitializeComponent();
+        }
+    }
+}

+ 80 - 0
PDF Office/Views/Dialog/Redaction/RepeatMarkDialog.xaml

@@ -0,0 +1,80 @@
+<UserControl
+    x:Class="PDF_Office.Views.Dialog.Redaction.RepeatMarkDialog"
+    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+    xmlns:cus="clr-namespace:PDF_Office.CustomControl"
+    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+    xmlns:prism="http://prismlibrary.com/"
+    Width="432"
+    Height="236"
+    d:DesignHeight="450"
+    d:DesignWidth="800"
+    prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
+    prism:ViewModelLocator.AutoWireViewModel="True"
+    Background="{StaticResource color.sys.layout.anti}"
+    mc:Ignorable="d">
+    <cus:DialogContent Header="Reapet Mark Across Pages">
+        <StackPanel Margin="16,0">
+            <RadioButton
+                Height="22"
+                VerticalContentAlignment="Center"
+                Content="All Pages"
+                GroupName="Page"
+                IsChecked="True" />
+            <RadioButton
+                Height="22"
+                Margin="0,8"
+                VerticalContentAlignment="Center"
+                Content="Odd Pages"
+                GroupName="Page" />
+            <RadioButton
+                Height="22"
+                VerticalContentAlignment="Center"
+                Content="Even Pages"
+                GroupName="Page" />
+
+            <StackPanel
+                Margin="0,8"
+                HorizontalAlignment="Left"
+                VerticalAlignment="Center"
+                Orientation="Horizontal">
+                <RadioButton
+                    Name="RbtnCustomPage"
+                    Height="22"
+                    VerticalContentAlignment="Center"
+                    Content="Custom"
+                    GroupName="Page" />
+                <cus:TextBoxEx
+                    Width="228"
+                    Height="32"
+                    Margin="8,0,0,0"
+                    CornerRadius="4"
+                    IsEnabled="{Binding ElementName=RbtnCustomPage, Path=IsChecked}"
+                    PlaceholderText="e.g. 1,3-5,10" />
+                <TextBlock
+                    Margin="8,0,0,0"
+                    VerticalAlignment="Center"
+                    Text="/" />
+            </StackPanel>
+        </StackPanel>
+        <cus:DialogContent.BottmBar>
+            <StackPanel
+                Margin="16,0"
+                HorizontalAlignment="Right"
+                Orientation="Horizontal">
+                <Button
+                    Width="80"
+                    Height="32"
+                    Content="Apply"
+                    Style="{StaticResource Btn.cta}" />
+                <Button
+                    Width="80"
+                    Height="32"
+                    Margin="16,0,0,0"
+                    Content="Cancel"
+                    Style="{StaticResource btn.sec}" />
+            </StackPanel>
+        </cus:DialogContent.BottmBar>
+    </cus:DialogContent>
+</UserControl>

+ 28 - 0
PDF Office/Views/Dialog/Redaction/RepeatMarkDialog.xaml.cs

@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace PDF_Office.Views.Dialog.Redaction
+{
+    /// <summary>
+    /// RepeatMarkDialog.xaml 的交互逻辑
+    /// </summary>
+    public partial class RepeatMarkDialog : UserControl
+    {
+        public RepeatMarkDialog()
+        {
+            InitializeComponent();
+        }
+    }
+}