Преглед изворни кода

compdfkit(windows) - 去除中文注释,去除无效using

liuaoran пре 1 година
родитељ
комит
1653c91dc0
99 измењених фајлова са 202 додато и 1579 уклоњено
  1. 0 3
      Demo/Examples/Annotations/MainWindow.xaml.cs
  2. 0 15
      Demo/Examples/Compdfkit_Tools/Annotation/CPDFAnnotationPreviewerControl.xaml.cs
  3. 0 6
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationData/CPDFAnnotationData.cs
  4. 1 23
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationList/PDFAnnotationListControl/CPDFAnnotationListControl.xaml.cs
  5. 1 23
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationList/PDFAnnotationListUI/CPDFAnnoationListUI.xaml.cs
  6. 1 47
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationControl/CPDFAnnotationControl.xaml.cs
  7. 0 10
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFCreateSignatureDialog.xaml.cs
  8. 0 27
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFCreateStampDialog.xaml.cs
  9. 1 16
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFDeleteDialog.xaml.cs
  10. 0 13
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFFreeTextUI.xaml.cs
  11. 0 14
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFFreehandUI.xaml.cs
  12. 1 16
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFLinkUI.xaml.cs
  13. 0 15
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFMarkupUI.xaml.cs
  14. 0 14
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFNoteUI.xaml.cs
  15. 0 13
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFShapeUI.xaml.cs
  16. 0 9
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFSignatureUI.xaml.cs
  17. 0 10
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFStampUI.xaml.cs
  18. 1 14
      Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFTempStampUI.xaml.cs
  19. 0 12
      Demo/Examples/Compdfkit_Tools/Common/BarControl/CPDFAnnotationBarControl.xaml.cs
  20. 1 14
      Demo/Examples/Compdfkit_Tools/Common/BarControl/CPDFBOTABarControl.xaml.cs
  21. 0 3
      Demo/Examples/Compdfkit_Tools/Common/BarControl/CPDFPageEditBarControl.xaml.cs
  22. 0 4
      Demo/Examples/Compdfkit_Tools/Common/BarControl/CPDFTitleBarControl.xaml.cs
  23. 0 3
      Demo/Examples/Compdfkit_Tools/Common/BarControl/FormBarControl.xaml.cs
  24. 0 3
      Demo/Examples/Compdfkit_Tools/Common/BaseControl/CustomSliderControl.xaml.cs
  25. 0 13
      Demo/Examples/Compdfkit_Tools/Common/BaseControl/DropDownNumberBoxControl.xaml.cs
  26. 1 15
      Demo/Examples/Compdfkit_Tools/Common/BaseControl/NumericUpDownControl.xaml.cs
  27. 1 14
      Demo/Examples/Compdfkit_Tools/Common/BaseControl/PageNumberControl.xaml.cs
  28. 0 4
      Demo/Examples/Compdfkit_Tools/Common/Convert/AnnotArgsTypeToVisibilityConverter.cs
  29. 0 4
      Demo/Examples/Compdfkit_Tools/Common/Convert/BoolToVisibilityConverter.cs
  30. 0 5
      Demo/Examples/Compdfkit_Tools/Common/Convert/CaptionHeightConverter.cs
  31. 0 4
      Demo/Examples/Compdfkit_Tools/Common/Convert/IntAndTagToBoolMultiBinding.cs
  32. 0 4
      Demo/Examples/Compdfkit_Tools/Common/Convert/ListViewWidthConverter.cs
  33. 0 5
      Demo/Examples/Compdfkit_Tools/Common/Convert/ReverseBoolConverter.cs
  34. 0 4
      Demo/Examples/Compdfkit_Tools/Common/Convert/ReverseVisibilityConverter.cs
  35. 0 5
      Demo/Examples/Compdfkit_Tools/Common/Convert/TextLengthToBoolConverter.cs
  36. 0 4
      Demo/Examples/Compdfkit_Tools/Common/Convert/TextLengthToVisibilityConverter.cs
  37. 0 4
      Demo/Examples/Compdfkit_Tools/Common/Convert/WindowStateToPathConverter.cs
  38. 0 4
      Demo/Examples/Compdfkit_Tools/Common/Convert/WindowStateToThicknessConverter.cs
  39. 0 3
      Demo/Examples/Compdfkit_Tools/Common/Helper/CommonHelper.cs
  40. 0 11
      Demo/Examples/Compdfkit_Tools/Common/PasswordControl/PasswordDialog.xaml.cs
  41. 1 13
      Demo/Examples/Compdfkit_Tools/Common/PasswordControl/PasswordWindow.xaml.cs
  42. 1 22
      Demo/Examples/Compdfkit_Tools/Common/PropertyControl/ColorPickerControl.xaml.cs
  43. 1 17
      Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFArrow/CPDFArrowControl.xaml.cs
  44. 0 10
      Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFArrow/CPDFArrowUI.xaml.cs
  45. 1 16
      Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFFont/CPDFFontControl.xaml.cs
  46. 0 14
      Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFFont/CPDFFontUI.xaml.cs
  47. 0 14
      Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFLineStyle/CPDFLineStyleControl.xaml.cs
  48. 0 15
      Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFLineStyle/CPDFLineStyleUI.xaml.cs
  49. 0 18
      Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFOpacity/CPDFOpacityControl.xaml.cs
  50. 0 18
      Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFOpacity/CPDFOpactiyUI.xaml.cs
  51. 0 15
      Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFThickness/CPDFThicknessControl.xaml.cs
  52. 0 14
      Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFThickness/CPDThicknessUI.xaml.cs
  53. 1 15
      Demo/Examples/Compdfkit_Tools/Common/PropertyControl/WritableComboBoxControl.xaml.cs
  54. 0 9
      Demo/Examples/Compdfkit_Tools/Edit/PDFImageEdit/PDFImageEditControl/PDFImageEditControl.xaml.cs
  55. 0 14
      Demo/Examples/Compdfkit_Tools/Edit/PDFImageEdit/PDFImageUI/CPDFImageFlipUI.xaml.cs
  56. 0 11
      Demo/Examples/Compdfkit_Tools/Edit/PDFImageEdit/PDFImageUI/CPDFImageRotateUI.xaml.cs
  57. 0 11
      Demo/Examples/Compdfkit_Tools/Edit/PDFTextEdit/PDFTextEditControl/PDFTextEditControl.xaml.cs
  58. 0 11
      Demo/Examples/Compdfkit_Tools/Edit/PDFTextEdit/PDFTextEditUI/CPDFTextAlignUI.xaml.cs
  59. 0 14
      Demo/Examples/Compdfkit_Tools/Edit/PDFTextEdit/PDFTextEditUI/CPDFTextStyleUI.xaml.cs
  60. 0 15
      Demo/Examples/Compdfkit_Tools/Form/FromPropertyControl.xaml.cs
  61. 1 15
      Demo/Examples/Compdfkit_Tools/Form/Property/CheckBoxProperty.xaml.cs
  62. 0 11
      Demo/Examples/Compdfkit_Tools/Form/Property/ComboBoxProperty.xaml.cs
  63. 0 12
      Demo/Examples/Compdfkit_Tools/Form/Property/ListBoxProperty.xaml.cs
  64. 1 12
      Demo/Examples/Compdfkit_Tools/Form/Property/PushButtonProperty.xaml.cs
  65. 0 12
      Demo/Examples/Compdfkit_Tools/Form/Property/RadioButtonProperty.xaml.cs
  66. 0 15
      Demo/Examples/Compdfkit_Tools/Form/Property/SignatureProperty.xaml.cs
  67. 1 16
      Demo/Examples/Compdfkit_Tools/Form/Property/TextFieldProperty.xaml.cs
  68. 0 36
      Demo/Examples/Compdfkit_Tools/PDFView/PDFBookmark/PDFBookmarkControl/CPDFBookmarkControl.xaml.cs
  69. 4 28
      Demo/Examples/Compdfkit_Tools/PDFView/PDFBookmark/PDFBookmarkUI/CPDFBookmarkAddUI.xaml.cs
  70. 0 87
      Demo/Examples/Compdfkit_Tools/PDFView/PDFBookmark/PDFBookmarkUI/CPDFBookmarkResultUI.xaml.cs
  71. 0 17
      Demo/Examples/Compdfkit_Tools/PDFView/PDFDisplaySettings/PDFDisplaySettingsControl/CPDFDisplaySettingsControl.xaml.cs
  72. 0 14
      Demo/Examples/Compdfkit_Tools/PDFView/PDFDisplaySettings/PDFDisplaySettingsControl/CPDFDrawModeControl.xaml.cs
  73. 0 3
      Demo/Examples/Compdfkit_Tools/PDFView/PDFDisplaySettings/PDFDisplaySettingsControl/CPDFViewModeControl.xaml.cs
  74. 0 3
      Demo/Examples/Compdfkit_Tools/PDFView/PDFDisplaySettings/PDFDisplaySettingsUI/CPDFDrawModeUI.xaml.cs
  75. 0 12
      Demo/Examples/Compdfkit_Tools/PDFView/PDFDisplaySettings/PDFDisplaySettingsUI/CPDFViewModeUI.xaml.cs
  76. 0 16
      Demo/Examples/Compdfkit_Tools/PDFView/PDFInfo/CPDFAbstractInfoControl.xaml.cs
  77. 0 16
      Demo/Examples/Compdfkit_Tools/PDFView/PDFInfo/CPDFCreateInfoControl.xaml.cs
  78. 1 19
      Demo/Examples/Compdfkit_Tools/PDFView/PDFInfo/CPDFInfoControl.xaml.cs
  79. 0 16
      Demo/Examples/Compdfkit_Tools/PDFView/PDFInfo/CPDFSecurityInfoControl.xaml.cs
  80. 0 13
      Demo/Examples/Compdfkit_Tools/PDFView/PDFOutline/PDFOutlineControl/CPDFOutlineControl.xaml.cs
  81. 0 40
      Demo/Examples/Compdfkit_Tools/PDFView/PDFOutline/PDFOutlineUI/CPDFOutlineUI.xaml.cs
  82. 1 16
      Demo/Examples/Compdfkit_Tools/PDFView/PDFScaling/PDFScalingControl/CPDFScalingControl.xaml.cs
  83. 1 18
      Demo/Examples/Compdfkit_Tools/PDFView/PDFScaling/PDFScalingUI/CPDFScalingUI.xaml.cs
  84. 0 41
      Demo/Examples/Compdfkit_Tools/PDFView/PDFSearch/PDFSearchControl/CPDFSearchControl.xaml.cs
  85. 0 37
      Demo/Examples/Compdfkit_Tools/PDFView/PDFSearch/PDFSearchUI/CPDFSearchInputUI.xaml.cs
  86. 9 34
      Demo/Examples/Compdfkit_Tools/PDFView/PDFSearch/PDFSearchUI/CPDFSearchResultUI.xaml.cs
  87. 10 18
      Demo/Examples/Compdfkit_Tools/PDFView/PDFThumbnail/PDFThumbnailControl/CPdfThumbnailControl.xaml.cs
  88. 16 28
      Demo/Examples/Compdfkit_Tools/PDFView/PDFThumbnail/PDFThumbnailUI/CPdfThumbnailUI.xaml.cs
  89. 0 13
      Demo/Examples/Compdfkit_Tools/PDFView/PDFViewControl/PDFViewControl.xaml.cs
  90. 23 33
      Demo/Examples/Compdfkit_Tools/PageEdit/PDFPageEdit/CPDFPageEditControl.xaml.cs
  91. 0 14
      Demo/Examples/Compdfkit_Tools/PageEdit/PDFPageExtract/CPDFPageExtractUI.xaml.cs
  92. 0 19
      Demo/Examples/Compdfkit_Tools/PageEdit/PDFPageExtract/CPDFPageExtractWindow.xaml.cs
  93. 0 15
      Demo/Examples/Compdfkit_Tools/PageEdit/PDFPageInsert/CPDFPageInsertUI.xaml.cs
  94. 0 17
      Demo/Examples/Compdfkit_Tools/PageEdit/PDFPageInsert/CPDFPageInsertWindow.xaml.cs
  95. 8 14
      Demo/Examples/DocsEditor/MainWindow.xaml.cs
  96. 107 106
      Demo/Examples/Forms/MainWindow.xaml.cs
  97. 1 0
      Demo/Examples/PDFViewer/MainPage.xaml.cs
  98. 1 21
      Demo/Examples/PDFViewer/MainWindow.xaml.cs
  99. 3 6
      Demo/Examples/Viewer/MainWindow.xaml.cs

+ 0 - 3
Demo/Examples/Annotations/MainWindow.xaml.cs

@@ -2,7 +2,6 @@
 using Compdfkit_Tools.Data;
 using Compdfkit_Tools.Helper;
 using Compdfkit_Tools.PDFControl;
-using Compdfkit_Tools.PDFControlUI;
 using ComPDFKitViewer;
 using ComPDFKitViewer.AnnotEvent;
 using ComPDFKitViewer.PdfViewer;
@@ -15,11 +14,9 @@ using System.Drawing;
 using System.IO;
 using System.Runtime.CompilerServices;
 using System.Windows;
-using System.Windows.Annotations;
 using System.Windows.Controls;
 using System.Windows.Controls.Primitives;
 using System.Windows.Input;
-using System.Windows.Media.Animation;
 using System.Windows.Media.Imaging;
 
 namespace Annotations

+ 0 - 15
Demo/Examples/Compdfkit_Tools/Annotation/CPDFAnnotationPreviewerControl.xaml.cs

@@ -1,28 +1,14 @@
 using Compdfkit_Tools.Data;
-using Compdfkit_Tools.Helper;
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Security.Permissions;
-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.Ink;
-using System.Windows.Input;
 using System.Windows.Media;
 using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
 using System.Windows.Shapes;
 using static Compdfkit_Tools.Helper.CommonHelper;
 
 namespace Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// CPDFAnnotationPreviewer.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFAnnotationPreviewerControl : UserControl
     {
         public CPDFAnnotationPreviewerControl()
@@ -198,7 +184,6 @@ namespace Compdfkit_Tools.PDFControl
                 FreeText.FontFamily = new FontFamily("Courier New");
             }
 
-            //FreeText.FontFamily = new FontFamily(freeTextData.FontFamily);
             FreeText.FontSize = freeTextData.FontSize/1.2;
             FreeText.Foreground = new SolidColorBrush(freeTextData.BorderColor);
             FreeText.Opacity = freeTextData.Opacity;

+ 0 - 6
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationData/CPDFAnnotationData.cs

@@ -1,14 +1,8 @@
 using ComPDFKit.PDFAnnotation;
-using Compdfkit_Tools.PDFControl;
 using ComPDFKitViewer.AnnotEvent;
-using System;
 using System.Collections.Generic;
 using System.ComponentModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
-using System.Windows.Markup;
 using System.Windows.Media;
 using System.Windows.Media.Imaging;
 

+ 1 - 23
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationList/PDFAnnotationListControl/CPDFAnnotationListControl.xaml.cs

@@ -1,28 +1,12 @@
-using ComPDFKit.PDFAnnotation;
-using ComPDFKitViewer.AnnotEvent;
+using ComPDFKitViewer.AnnotEvent;
 using ComPDFKitViewer.PdfViewer;
-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;
 using static Compdfkit_Tools.PDFControlUI.CPDFAnnoationListUI;
-using static System.Windows.Forms.VisualStyles.VisualStyleElement.StartPanel;
 
 namespace Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// CPDFAnnotationListControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFAnnotationListControl : UserControl
     {
         /// <summary>
@@ -52,9 +36,6 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 设置PDFViewer
-        /// </summary>
         public void InitWithPDFViewer(CPDFViewer newPDFView)
         {
             pdfViewer = newPDFView;
@@ -79,9 +60,6 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 加载缩略图
-        /// </summary>
         public void LoadAnnotationList()
         {
             if (pdfViewer == null || pdfViewer.Document == null)

+ 1 - 23
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationList/PDFAnnotationListUI/CPDFAnnoationListUI.xaml.cs

@@ -1,36 +1,20 @@
-using Compdfkit_Tools.Data;
-using ComPDFKitViewer.AnnotEvent;
+using ComPDFKitViewer.AnnotEvent;
 using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.ComponentModel;
-using System.Linq;
-using System.Text;
 using System.Text.RegularExpressions;
-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.Markup;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
 
 namespace Compdfkit_Tools.PDFControlUI
 {
-    /// <summary>
-    /// CPDFAnnoationListUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFAnnoationListUI : UserControl
     {
         public class BindAnnotationResult : INotifyPropertyChanged
         {
-            /// <summary>
-            /// 页面索引
-            /// </summary>
             public int PageIndex { get; set; }
 
             public int AnnotIndex { get => annotationData.AnnotIndex; }
@@ -81,9 +65,6 @@ namespace Compdfkit_Tools.PDFControlUI
             public int ShowPageIndex { get { return BindProperty.PageIndex + 1; } set { BindProperty.PageIndex = value; } }
         }
 
-        /// <summary>
-        /// 绑定注释集合
-        /// </summary>
         private ObservableCollection<AnnotationBindData> annotationList = new ObservableCollection<AnnotationBindData>();
 
         public event EventHandler<object> AnnotationSelectionChanged;
@@ -157,9 +138,6 @@ namespace Compdfkit_Tools.PDFControlUI
             }
         }
 
-        /// <summary>
-        /// 绑定注释集合
-        /// </summary>
         /// <param name="results"></param>
         public void SetAnnotationList(List<BindAnnotationResult> results)
         {

+ 1 - 47
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationControl/CPDFAnnotationControl.xaml.cs

@@ -1,23 +1,13 @@
 using Compdfkit_Tools.Data;
-using Compdfkit_Tools.PDFControl;
 using Compdfkit_Tools.PDFControlUI;
 using ComPDFKitViewer.AnnotEvent;
 using ComPDFKitViewer;
 using ComPDFKitViewer.PdfViewer;
 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.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
-using static System.Windows.Forms.VisualStyles.VisualStyleElement.StartPanel;
 using Compdfkit_Tools.Annotation.PDFAnnotationPanel.PDFAnnotationUI;
 using System.IO;
 using System.Windows.Ink;
@@ -28,9 +18,6 @@ using Compdfkit_Tools.Properties;
 
 namespace Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// CPDFAnnotationControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFAnnotationControl : UserControl
     {
 
@@ -144,10 +131,7 @@ namespace Compdfkit_Tools.PDFControl
         {
             UnLoadPDFViewHandler();
         }
-        /// <summary>
-        /// 获取Annotation面板
-        /// </summary>
-        /// <returns></returns>
+
         private UIElement GetAnnotationPanel()
         {
             return AnnotationPanelContainer.Child;
@@ -158,10 +142,6 @@ namespace Compdfkit_Tools.PDFControl
             AnnotationPanelContainer.Child = newChild;
         }
 
-        /// <summary>
-        /// 展开Annotation面板
-        /// </summary>
-        /// <param name="isExpand"></param>
         private void ExpandPanel()
         {
             AnnotationPanelContainer.Visibility = Visibility.Visible;
@@ -215,10 +195,6 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 参数解析
-        /// </summary>
-        /// <param name="pdfAnnotationData"></param>
         private void SetAnnotationProperty(CPDFAnnotationData pdfAnnotationData = null)
         {
             if (pdfAnnotationData == null)
@@ -229,7 +205,6 @@ namespace Compdfkit_Tools.PDFControl
 
             CPDFAnnotationType annotationType = pdfAnnotationData.AnnotationType;
             AnnotHandlerEventArgs annotHandlerEventArgs = null;
-            //this.pdfViewer.SetMouseMode(MouseModes.PanTool);
             Dictionary<AnnotAttrib, object> annotAttribsList = new Dictionary<AnnotAttrib, object>();
             switch (annotationType)
             {
@@ -491,12 +466,6 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 选择对应注释面板
-        /// 若未创建则创建
-        /// 已创建则使用已有项
-        /// </summary>
-        /// <param name="annotationType"></param>
         public void InitAnnotationPanel(CPDFAnnotationType annotationType)
         {
             switch (annotationType)
@@ -726,10 +695,6 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 创建临时注释面板
-        /// </summary>
-        /// <param name="annotArgsType"></param>
         public void CreatTempAnnotationPanel(AnnotAttribEvent annotAttribEvent)
         {
             AnnotArgsType annotArgsType = annotAttribEvent.GetAnnotTypes();
@@ -786,10 +751,6 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 根据注释类型显示注释面板
-        /// </summary>
-        /// <param name="annotationType"></param>
         public void LoadAnnotationPanel(CPDFAnnotationType annotationType)
         {
             this.pdfViewer.SetMouseMode(MouseModes.PanTool);
@@ -799,9 +760,6 @@ namespace Compdfkit_Tools.PDFControl
             ShowCurrentAnnotPanel();
         }
 
-        /// <summary>
-        /// 展示正在使用的属性面板
-        /// </summary>
         private void ShowCurrentAnnotPanel()
         {
             if (annotationPanel != null)
@@ -826,10 +784,6 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 根据参数展开指定临时面板
-        /// </summary>
-        /// <param name="annotArgsType"></param>
         private void ShowTempAnnotPanel(AnnotAttribEvent annotAttribEvent)
         {
             if (annotAttribEvent != null)

+ 0 - 10
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFCreateSignatureDialog.xaml.cs

@@ -6,25 +6,15 @@ using System.Drawing.Imaging;
 using System.Drawing;
 using System.IO;
 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.Shapes;
 using System.Globalization;
-using System.Reflection;
 using ComPDFKitViewer.AnnotEvent;
 using System.Windows.Ink;
-using ComPDFKitViewer;
-using System.Net.NetworkInformation;
 using Compdfkit_Tools.Common;
-using static System.Net.Mime.MediaTypeNames;
-using System.Runtime.InteropServices;
 
 namespace Compdfkit_Tools.Annotation.PDFAnnotationPanel.PDFAnnotationUI
 {

+ 0 - 27
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFCreateStampDialog.xaml.cs

@@ -1,6 +1,5 @@
 using ComPDFKit.PDFAnnotation;
 using Compdfkit_Tools.Data;
-using ComPDFKitViewer;
 using ComPDFKitViewer.AnnotEvent;
 using Microsoft.Win32;
 using System;
@@ -9,14 +8,9 @@ using System.Collections.ObjectModel;
 using System.IO;
 using System.Linq;
 using System.Reflection;
-using System.Runtime.InteropServices.ComTypes;
-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;
 
@@ -89,27 +83,6 @@ namespace Compdfkit_Tools.Annotation.PDFAnnotationPanel.PDFAnnotationUI
             this.Close();
         }
 
-        //private void RadioButton_Checked(object sender, RoutedEventArgs e)
-        //{
-        //    switch ((sender as System.Windows.Controls.RadioButton).Tag)
-        //    {
-        //        case "0":
-        //            Color = C_TEXTSTAMP_COLOR.TEXTSTAMP_RED;
-        //            UpTextPreview();
-        //            break;
-        //        case "1":
-        //            Color = C_TEXTSTAMP_COLOR.TEXTSTAMP_GREEN;
-        //            UpTextPreview();
-        //            break;
-        //        case "2":
-        //            Color = C_TEXTSTAMP_COLOR.TEXTSTAMP_BLUE;
-        //            UpTextPreview();
-        //            break;
-        //        default:
-        //            break;
-        //    }
-        //}
-
         private void SaveToImage(string FilePath)
         {
             string path = CustomStampPath;

+ 1 - 16
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFDeleteDialog.xaml.cs

@@ -1,22 +1,7 @@
-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.Shapes;
+using System.Windows;
 
 namespace Compdfkit_Tools.Annotation.PDFAnnotationPanel.PDFAnnotationUI
 {
-    /// <summary>
-    /// DeleteDialog.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFDeleteDialog : Window
     {
         private string titleContent = "";

+ 0 - 13
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFFreeTextUI.xaml.cs

@@ -3,25 +3,12 @@ using Compdfkit_Tools.Data;
 using ComPDFKitViewer;
 using ComPDFKitViewer.AnnotEvent;
 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 Compdfkit_Tools.PDFControlUI
 {
-    /// <summary>
-    /// CPDFFreeTextUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFFreeTextUI : UserControl
     {
         public event EventHandler<CPDFAnnotationData> PropertyChanged;

+ 0 - 14
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFFreehandUI.xaml.cs

@@ -2,26 +2,12 @@
 using ComPDFKitViewer.AnnotEvent;
 using ComPDFKitViewer;
 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;
-using ComPDFKitViewer.PdfViewer;
 
 namespace Compdfkit_Tools.PDFControlUI
 {
-    /// <summary>
-    /// CPDFFreeHandUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFFreehandUI : UserControl
     {
         public event EventHandler<CPDFAnnotationData> PropertyChanged;

+ 1 - 16
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFLinkUI.xaml.cs

@@ -1,30 +1,15 @@
-using Compdfkit_Tools.PDFControl;
-using ComPDFKitViewer;
+using ComPDFKitViewer;
 using ComPDFKitViewer.AnnotEvent;
 using System;
-using System.Collections.Generic;
 using System.ComponentModel;
-using System.Linq;
 using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Text;
 using System.Text.RegularExpressions;
-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 Compdfkit_Tools.Annotation.PDFAnnotationUI
 {
-    /// <summary>
-    /// CPDFLinkUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFLinkUI : UserControl, INotifyPropertyChanged
     {
         bool OpenPDF = false;

+ 0 - 15
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFMarkupUI.xaml.cs

@@ -2,27 +2,12 @@
 using Compdfkit_Tools.Data;
 using ComPDFKitViewer;
 using ComPDFKitViewer.AnnotEvent;
-using ComPDFKitViewer.PdfViewer;
 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 Compdfkit_Tools.PDFControlUI
 {
-    /// <summary>
-    /// CPDFMarkupUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFMarkupUI : UserControl
     {
         private CPDFAnnotationType currentAnnotationType;

+ 0 - 14
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFNoteUI.xaml.cs

@@ -3,25 +3,11 @@ using Compdfkit_Tools.Data;
 using ComPDFKitViewer.AnnotEvent;
 using ComPDFKitViewer;
 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 Compdfkit_Tools.PDFControlUI
 {
-    /// <summary>
-    /// CPDFNoteUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFNoteUI : UserControl
     {
         public event EventHandler<CPDFAnnotationData> PropertyChanged;

+ 0 - 13
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFShapeUI.xaml.cs

@@ -3,26 +3,13 @@ using Compdfkit_Tools.Data;
 using ComPDFKitViewer.AnnotEvent;
 using ComPDFKitViewer;
 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;
 using ComPDFKit.PDFAnnotation;
 
 namespace Compdfkit_Tools.PDFControlUI
 {
-    /// <summary>
-    /// CPDFRectUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFShapeUI : UserControl
     {
         private CPDFAnnotationType currentAnnotationType;

+ 0 - 9
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFSignatureUI.xaml.cs

@@ -4,22 +4,13 @@ using Compdfkit_Tools.Properties;
 using ComPDFKitViewer.AnnotEvent;
 using ComPDFKitViewer.PdfViewer;
 using System;
-using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.IO;
-using System.Linq;
-using System.Runtime.InteropServices.ComTypes;
-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 Compdfkit_Tools.Annotation.PDFAnnotationPanel.PDFAnnotationUI
 {

+ 0 - 10
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFStampUI.xaml.cs

@@ -6,20 +6,10 @@ using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.ComponentModel;
 using System.IO;
-using System.Linq;
-using System.Runtime.InteropServices.ComTypes;
-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.Markup;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
 
 namespace Compdfkit_Tools.Annotation.PDFAnnotationPanel.PDFAnnotationUI
 {

+ 1 - 14
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFTempStampUI.xaml.cs

@@ -1,20 +1,7 @@
-using Compdfkit_Tools.Common;
-using ComPDFKitViewer.AnnotEvent;
+using ComPDFKitViewer.AnnotEvent;
 using ComPDFKitViewer;
-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 Compdfkit_Tools.PDFControlUI
 {

+ 0 - 12
Demo/Examples/Compdfkit_Tools/Common/BarControl/CPDFAnnotationBarControl.xaml.cs

@@ -1,25 +1,13 @@
 using Compdfkit_Tools.Data;
-using ComPDFKitViewer.AnnotEvent;
 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.Controls.Primitives;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
 using System.Windows.Media;
-using System.Windows.Media.Imaging;
 using System.Windows.Shapes;
 
 namespace Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// PDFAnnotationBarControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFAnnotationBarControl : UserControl
     {
         private int annotationCounter = 0;

+ 1 - 14
Demo/Examples/Compdfkit_Tools/Common/BarControl/CPDFBOTABarControl.xaml.cs

@@ -27,9 +27,7 @@ namespace Compdfkit_Tools.PDFControl
         Annotation = 1 << 3,
         Search = 1 << 4,
     }
-    /// <summary>
-    /// BOTABarControl.xaml 的交互逻辑
-    /// </summary>
+
     public partial class CPDFBOTABarControl : UserControl
     {
         private CPDFViewer pdfViewer;
@@ -225,10 +223,6 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 获取Bota工具
-        /// </summary>
-        /// <returns></returns>
         private UIElement GetBotaTool()
         {
             return BotaToolContainer.Child;
@@ -239,18 +233,11 @@ namespace Compdfkit_Tools.PDFControl
             BotaToolContainer.Child = newChild;
         }
 
-        /// <summary>
-        /// 展开Bota工具
-        /// </summary>
-        /// <param name="isExpand"></param>
         private void ExpandTool(bool isExpand)
         {
             BotaToolContainer.Visibility = isExpand ? Visibility.Visible : Visibility.Collapsed;
         }
 
-        /// <summary>
-        /// 清除工具栏状态
-        /// </summary>
         private void ClearToolState(UIElement ignoreTool)
         {
             foreach (UIElement child in BOTABarTitleGrid.Children)

+ 0 - 3
Demo/Examples/Compdfkit_Tools/Common/BarControl/CPDFPageEditBarControl.xaml.cs

@@ -19,9 +19,6 @@ using System.Windows.Shapes;
 
 namespace Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// CPDFPageEditBarControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFPageEditBarControl : UserControl, INotifyPropertyChanged
     {
         #region Data

+ 0 - 4
Demo/Examples/Compdfkit_Tools/Common/BarControl/CPDFTitleBarControl.xaml.cs

@@ -17,10 +17,6 @@ using System.Windows.Shapes;
 
 namespace Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// TitleBarControl.xaml 的交互逻辑
-    /// </summary>
-    /// 
     public partial class CPDFTitleBarControl : UserControl
     {
         public static readonly DependencyProperty CanSaveProperty =

+ 0 - 3
Demo/Examples/Compdfkit_Tools/Common/BarControl/FormBarControl.xaml.cs

@@ -22,9 +22,6 @@ using System.Xml.Linq;
 
 namespace Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// FormBarControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFFormBarControl : UserControl, INotifyPropertyChanged
     {
         enum FromType

+ 0 - 3
Demo/Examples/Compdfkit_Tools/Common/BaseControl/CustomSliderControl.xaml.cs

@@ -15,9 +15,6 @@ using System.Windows.Shapes;
 
 namespace Compdfkit_Tools.Common
 {
-    /// <summary>
-    /// CustomSlider.xaml 的交互逻辑
-    /// </summary>
     public partial class CustomSliderControl : UserControl
     {
         // The dependency property which will be accessible on the UserControl

+ 0 - 13
Demo/Examples/Compdfkit_Tools/Common/BaseControl/DropDownNumberBoxControl.xaml.cs

@@ -1,24 +1,12 @@
 using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Text;
 using System.Text.RegularExpressions;
-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 Compdfkit_Tools.Common
 {
-    /// <summary>
-    /// NumberBoxDropDownControl.xaml 的交互逻辑
-    /// </summary>
     public partial class DropDownNumberBoxControl : UserControl
     {
         private string regixString = "[^0-9]+";
@@ -143,7 +131,6 @@ namespace Compdfkit_Tools.Common
         {
             if ((sender as ComboBox).SelectedItem != null)
             {
-                // 处理空引用异常的代码
                 TextBox.Text = (sender as ComboBox).SelectedItem.ToString();
                 SetPresetEvent?.Invoke(sender, TextBox.Text);
             }

+ 1 - 15
Demo/Examples/Compdfkit_Tools/Common/BaseControl/NumericUpDownControl.xaml.cs

@@ -1,24 +1,10 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Text.RegularExpressions;
-using System.Threading.Tasks;
+using System.Text.RegularExpressions;
 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 Compdfkit_Tools.Common
 {
-    /// <summary>
-    /// NumericUpDownControl.xaml 的交互逻辑
-    /// </summary>
     public partial class NumericUpDownControl : UserControl
     {
         private string regixString = "[^0-9]+";

+ 1 - 14
Demo/Examples/Compdfkit_Tools/Common/BaseControl/PageNumberControl.xaml.cs

@@ -1,25 +1,12 @@
-using Compdfkit_Tools.PDFControl;
-using ComPDFKitViewer.PdfViewer;
+using ComPDFKitViewer.PdfViewer;
 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 Compdfkit_Tools.Common
 {
-    /// <summary>
-    /// PageNumberControl.xaml 的交互逻辑
-    /// </summary>
     public partial class PageNumberControl : UserControl
     {
         private CPDFViewer pdfView;

+ 0 - 4
Demo/Examples/Compdfkit_Tools/Common/Convert/AnnotArgsTypeToVisibilityConverter.cs

@@ -1,10 +1,6 @@
 using ComPDFKitViewer.AnnotEvent;
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Data;
 

+ 0 - 4
Demo/Examples/Compdfkit_Tools/Common/Convert/BoolToVisibilityConverter.cs

@@ -1,9 +1,5 @@
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows.Data;
 using System.Windows;
 

+ 0 - 5
Demo/Examples/Compdfkit_Tools/Common/Convert/CaptionHeightConverter.cs

@@ -1,10 +1,5 @@
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
 using System.Windows.Data;
 
 namespace Compdfkit_Tools.Common

+ 0 - 4
Demo/Examples/Compdfkit_Tools/Common/Convert/IntAndTagToBoolMultiBinding.cs

@@ -1,9 +1,5 @@
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows.Data;
 
 namespace Compdfkit_Tools.Common

+ 0 - 4
Demo/Examples/Compdfkit_Tools/Common/Convert/ListViewWidthConverter.cs

@@ -1,9 +1,5 @@
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows.Data;
 using System.Windows;
 

+ 0 - 5
Demo/Examples/Compdfkit_Tools/Common/Convert/ReverseBoolConverter.cs

@@ -1,10 +1,5 @@
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows.Data;
-using System.Windows;
 using System.Globalization;
 
 namespace Compdfkit_Tools.Common

+ 0 - 4
Demo/Examples/Compdfkit_Tools/Common/Convert/ReverseVisibilityConverter.cs

@@ -1,9 +1,5 @@
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Data;
 

+ 0 - 5
Demo/Examples/Compdfkit_Tools/Common/Convert/TextLengthToBoolConverter.cs

@@ -1,10 +1,5 @@
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
 using System.Windows.Data;
 
 namespace Compdfkit_Tools.Common

+ 0 - 4
Demo/Examples/Compdfkit_Tools/Common/Convert/TextLengthToVisibilityConverter.cs

@@ -1,9 +1,5 @@
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Data;
 

+ 0 - 4
Demo/Examples/Compdfkit_Tools/Common/Convert/WindowStateToPathConverter.cs

@@ -1,9 +1,5 @@
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows.Data;
 using System.Windows.Media;
 using System.Windows;

+ 0 - 4
Demo/Examples/Compdfkit_Tools/Common/Convert/WindowStateToThicknessConverter.cs

@@ -1,9 +1,5 @@
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows.Data;
 using System.Windows;
 

+ 0 - 3
Demo/Examples/Compdfkit_Tools/Common/Helper/CommonHelper.cs

@@ -4,10 +4,7 @@ using Microsoft.Win32;
 using System;
 using System.Collections.Generic;
 using System.IO;
-using System.Linq;
 using System.Reflection;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
 using System.Windows.Media;

+ 0 - 11
Demo/Examples/Compdfkit_Tools/Common/PasswordControl/PasswordDialog.xaml.cs

@@ -1,17 +1,6 @@
 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 Compdfkit_Tools.Common
 {

+ 1 - 13
Demo/Examples/Compdfkit_Tools/Common/PasswordControl/PasswordWindow.xaml.cs

@@ -1,18 +1,6 @@
-using Compdfkit_Tools.PDFControl;
-using ComPDFKitViewer.PdfViewer;
+using ComPDFKitViewer.PdfViewer;
 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.Shapes;
 
 namespace Compdfkit_Tools.Common
 {

+ 1 - 22
Demo/Examples/Compdfkit_Tools/Common/PropertyControl/ColorPickerControl.xaml.cs

@@ -1,27 +1,14 @@
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
-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.Forms;
-using System.Windows.Input;
 using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
 using RadioButton = System.Windows.Controls.RadioButton;
 using UserControl = System.Windows.Controls.UserControl;
 
 namespace Compdfkit_Tools.Common
 {
-    /// <summary>
-    /// ColorSelectorControl.xaml 的交互逻辑
-    /// </summary>
     public partial class ColorPickerControl : UserControl
     {
         public event PropertyChangedEventHandler PropertyChanged;
@@ -140,9 +127,7 @@ namespace Compdfkit_Tools.Common
                 SetIsChecked(index);
             }
         }
-        /// <summary>
-        /// 设置允许为空
-        /// </summary>
+
         public static readonly DependencyProperty CanNoneProperty = DependencyProperty.Register("CanNone", typeof(bool), typeof(ColorPickerControl), new PropertyMetadata(false));
         public bool CanNone
         {
@@ -150,9 +135,6 @@ namespace Compdfkit_Tools.Common
             set { SetValue(CanNoneProperty, value); }
         }
 
-        /// <summary>
-        /// 设置颜色
-        /// </summary>
         public static readonly DependencyProperty BrushProperty = DependencyProperty.Register("Brush", typeof(Brush), typeof(ColorPickerControl), new PropertyMetadata(Brushes.Red));
         public Brush Brush
         {
@@ -167,9 +149,6 @@ namespace Compdfkit_Tools.Common
             }
         }
 
-        /// <summary>
-        /// 设置颜色
-        /// </summary>
         public static readonly DependencyProperty CustomBrushProperty = DependencyProperty.Register("CustomBrush", typeof(Brush), typeof(ColorPickerControl), new PropertyMetadata(Brushes.Red));
         public Brush CustomBrush
         {

+ 1 - 17
Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFArrow/CPDFArrowControl.xaml.cs

@@ -1,26 +1,10 @@
-using ComPDFKit.PDFAnnotation;
-using Compdfkit_Tools.Data;
-using Compdfkit_Tools.PDFControlUI;
+using Compdfkit_Tools.Data;
 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 Compdfkit_Tools.Common
 {
-    /// <summary>
-    /// CPDFArrowControlControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFArrowControl : UserControl
     {
         public event EventHandler ArrowChanged;

+ 0 - 10
Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFArrow/CPDFArrowUI.xaml.cs

@@ -1,17 +1,7 @@
 using System;
-using System.Collections.Generic;
 using System.ComponentModel;
-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 Compdfkit_Tools.Common

+ 1 - 16
Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFFont/CPDFFontControl.xaml.cs

@@ -1,24 +1,9 @@
-using Compdfkit_Tools.Data;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
+using System;
 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 Compdfkit_Tools.Common
 {
-    /// <summary>
-    /// CPDFFontControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFFontControl : UserControl
     {
         public bool IsReset = false;

+ 0 - 14
Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFFont/CPDFFontUI.xaml.cs

@@ -1,25 +1,11 @@
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
-using System.Linq;
-using System.Runtime.CompilerServices;
-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 Compdfkit_Tools.Common
 {
-    /// <summary>
-    /// CPDFFontUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFFontUI : UserControl, INotifyPropertyChanged
     {
 

+ 0 - 14
Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFLineStyle/CPDFLineStyleControl.xaml.cs

@@ -1,26 +1,12 @@
 using Compdfkit_Tools.Data;
 using System;
-using System.Collections.Generic;
-using System.Drawing.Drawing2D;
 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;
 using DashStyle = System.Windows.Media.DashStyle;
 
 namespace Compdfkit_Tools.Common
 {
-    /// <summary>
-    /// CPDFLineStyleControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFLineStyleControl : UserControl
     {
         public event EventHandler LineStyleChanged;

+ 0 - 15
Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFLineStyle/CPDFLineStyleUI.xaml.cs

@@ -1,27 +1,12 @@
 using Compdfkit_Tools.Data;
 using System;
-using System.Collections.Generic;
 using System.ComponentModel;
-using System.Drawing.Drawing2D;
-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;
 using DashStyle = System.Windows.Media.DashStyle;
 
 namespace Compdfkit_Tools.Common
 {
-    /// <summary>           
-    /// CPDFLineStyleUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFLineStyleUI : UserControl, INotifyPropertyChanged
     {
         private CPDFDashData _dashStyle = new CPDFDashData();

+ 0 - 18
Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFOpacity/CPDFOpacityControl.xaml.cs

@@ -1,30 +1,12 @@
 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 Compdfkit_Tools.Common
 {
-    /// <summary>
-    /// CPDFOpacityControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFOpacityControl : UserControl
     {
         public event EventHandler OpacityChanged;
 
-        /// <summary>
-        /// Opacity重名会引起问题
-        /// </summary>
         public int OpacityValue
         {
             get=> CPDFOpacityUI.OpacityValue;

+ 0 - 18
Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFOpacity/CPDFOpactiyUI.xaml.cs

@@ -1,24 +1,10 @@
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
-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 Compdfkit_Tools.Common
 {
-    /// <summary>
-    /// OpactiyControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFOpacityUI : UserControl, INotifyPropertyChanged
     {
 
@@ -40,10 +26,6 @@ namespace Compdfkit_Tools.Common
             }
         }
 
-        //public event EventHandler<string> SetCustomOpacityEvent;
-        //public event EventHandler<string> SetPresetOpacityEvent;
-        //public event EventHandler<int> SliderValueChangedEvent;
-        //public event EventHandler<int> SliderDragCompleted;
         public event EventHandler OpacityChanged;
 
         public event PropertyChangedEventHandler PropertyChanged;

+ 0 - 15
Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFThickness/CPDFThicknessControl.xaml.cs

@@ -1,23 +1,8 @@
 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 Compdfkit_Tools.Common
 {
-    /// <summary>
-    /// CPDFThicknessControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFThicknessControl : UserControl
     {
 

+ 0 - 14
Demo/Examples/Compdfkit_Tools/Common/PropertyControl/PDFThickness/CPDThicknessUI.xaml.cs

@@ -1,24 +1,10 @@
 using System;
 using System.Collections.Generic;
 using System.ComponentModel;
-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 Compdfkit_Tools.Common
 {
-    /// <summary>
-    /// CPDFBorderWidthUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFThicknessUI : UserControl, INotifyPropertyChanged
     {
         public event PropertyChangedEventHandler PropertyChanged;

+ 1 - 15
Demo/Examples/Compdfkit_Tools/Common/PropertyControl/WritableComboBoxControl.xaml.cs

@@ -1,25 +1,11 @@
-using Compdfkit_Tools.Helper;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
+using System;
 using System.Text.RegularExpressions;
-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 Compdfkit_Tools.Common
 {
-    /// <summary>
-    /// WritableComboBoxControl.xaml 的交互逻辑
-    /// </summary>
     public partial class WritableComboBoxControl : UserControl
     {
 

+ 0 - 9
Demo/Examples/Compdfkit_Tools/Edit/PDFImageEdit/PDFImageEditControl/PDFImageEditControl.xaml.cs

@@ -2,18 +2,9 @@
 using ComPDFKitViewer;
 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;
 using ComPDFKit.PDFPage;
 using System.Windows.Controls.Primitives;
 using Microsoft.Win32;

+ 0 - 14
Demo/Examples/Compdfkit_Tools/Edit/PDFImageEdit/PDFImageUI/CPDFImageFlipUI.xaml.cs

@@ -1,23 +1,9 @@
 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 Compdfkit_Tools.Edit
 {
-    /// <summary>
-    /// CPDFImageFlipUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFImageFlipUI : UserControl
     {
         public event EventHandler<bool> FlipChanged;

+ 0 - 11
Demo/Examples/Compdfkit_Tools/Edit/PDFImageEdit/PDFImageUI/CPDFImageRotateUI.xaml.cs

@@ -1,17 +1,6 @@
 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 Compdfkit_Tools.Edit
 {

+ 0 - 11
Demo/Examples/Compdfkit_Tools/Edit/PDFTextEdit/PDFTextEditControl/PDFTextEditControl.xaml.cs

@@ -1,23 +1,12 @@
 using ComPDFKit.PDFPage;
 using ComPDFKit.PDFPage.Edit;
-using Compdfkit_Tools.PDFControl;
 using ComPDFKitViewer;
 using ComPDFKitViewer.PdfViewer;
 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.Controls.Primitives;
-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 Compdfkit_Tools.Edit
 {

+ 0 - 11
Demo/Examples/Compdfkit_Tools/Edit/PDFTextEdit/PDFTextEditUI/CPDFTextAlignUI.xaml.cs

@@ -1,20 +1,9 @@
 using ComPDFKit.PDFPage.Edit;
-using ComPDFKitViewer.PdfViewer;
 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.Controls.Primitives;
-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 Compdfkit_Tools.Edit
 {

+ 0 - 14
Demo/Examples/Compdfkit_Tools/Edit/PDFTextEdit/PDFTextEditUI/CPDFTextStyleUI.xaml.cs

@@ -1,24 +1,10 @@
 using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Runtime.CompilerServices;
-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 Compdfkit_Tools.Edit
 {
-    /// <summary>
-    /// CPDFFontStyleUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFTextStyleUI : UserControl
     {
         public event EventHandler<string> TextFontChanged;

+ 0 - 15
Demo/Examples/Compdfkit_Tools/Form/FromPropertyControl.xaml.cs

@@ -1,26 +1,11 @@
 using Compdfkit_Tools.Annotation.PDFAnnotationPanel.PDFAnnotationUI;
 using ComPDFKitViewer.AnnotEvent;
 using ComPDFKitViewer.PdfViewer;
-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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// FromPropertyControl.xaml 的交互逻辑
-    /// </summary>
     public partial class FromPropertyControl : UserControl
     {
         private CPDFViewer pdfViewer; 

+ 1 - 15
Demo/Examples/Compdfkit_Tools/Form/Property/CheckBoxProperty.xaml.cs

@@ -1,26 +1,12 @@
-using Compdfkit_Tools.Common;
-using ComPDFKitViewer;
+using ComPDFKitViewer;
 using ComPDFKitViewer.AnnotEvent;
 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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// CheckBoxProperty.xaml 的交互逻辑
-    /// </summary>
     public partial class CheckBoxProperty : UserControl
     {
         private WidgetCheckBoxArgs widgetArgs = null;

+ 0 - 11
Demo/Examples/Compdfkit_Tools/Form/Property/ComboBoxProperty.xaml.cs

@@ -3,24 +3,13 @@ using ComPDFKitViewer.AnnotEvent;
 using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
-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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// ComboButtonProperty.xaml 的交互逻辑
-    /// </summary>
     public partial class ComboBoxProperty : UserControl
     {
         private WidgetComboBoxArgs widgetArgs = null;

+ 0 - 12
Demo/Examples/Compdfkit_Tools/Form/Property/ListBoxProperty.xaml.cs

@@ -3,25 +3,13 @@ using ComPDFKitViewer.AnnotEvent;
 using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
-using System.Windows.Controls.Primitives;
 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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// ListBoxProperty.xaml 的交互逻辑
-    /// </summary>
     public partial class ListBoxProperty : UserControl
     {
         private WidgetListBoxArgs widgetArgs = null;

+ 1 - 12
Demo/Examples/Compdfkit_Tools/Form/Property/PushButtonProperty.xaml.cs

@@ -2,27 +2,16 @@
 using ComPDFKitViewer;
 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;
 using System.Collections.ObjectModel;
 using ComPDFKit.PDFDocument.Action;
 using ComPDFKitViewer.PdfViewer;
 
 namespace Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// PushButtonProperty.xaml 的交互逻辑
-    /// </summary>
     public partial class PushButtonProperty : UserControl
     {
         private WidgetPushButtonArgs widgetArgs = null;
@@ -272,7 +261,7 @@ namespace Compdfkit_Tools.PDFControl
             {
                 int page = 0;
                 int.TryParse(ActionContentText.Text.Trim(), out page);
-                if (page <= 0 || page > pdfViewer.Document.PageCount)//超出页面范围时默认跳转到第一页
+                if (page <= 0 || page > pdfViewer.Document.PageCount)
                     page = 1;
                 if (page - 1 >= 0)
                     ActionDict[C_ACTION_TYPE.ACTION_TYPE_GOTO] = (page - 1).ToString();

+ 0 - 12
Demo/Examples/Compdfkit_Tools/Form/Property/RadioButtonProperty.xaml.cs

@@ -1,29 +1,17 @@
 using ComPDFKit.PDFAnnotation.Form;
 using ComPDFKit.PDFAnnotation;
-using Compdfkit_Tools.Common;
 using ComPDFKitViewer;
 using ComPDFKitViewer.AnnotEvent;
 using ComPDFKitViewer.PdfViewer;
 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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// RadioButtonProperty.xaml 的交互逻辑
-    /// </summary>
     public partial class RadioButtonProperty : UserControl
     {
         private WidgetRadioButtonArgs widgetArgs = null;

+ 0 - 15
Demo/Examples/Compdfkit_Tools/Form/Property/SignatureProperty.xaml.cs

@@ -1,25 +1,10 @@
 using ComPDFKitViewer;
 using ComPDFKitViewer.AnnotEvent;
-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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// SignatureProperty.xaml 的交互逻辑
-    /// </summary>
     public partial class SignatureProperty : UserControl
     {
         private WidgetSignArgs widgetArgs = null;

+ 1 - 16
Demo/Examples/Compdfkit_Tools/Form/Property/TextFieldProperty.xaml.cs

@@ -1,30 +1,15 @@
-using Compdfkit_Tools.Common;
-using Compdfkit_Tools.Data;
-using ComPDFKitViewer;
+using ComPDFKitViewer;
 using ComPDFKitViewer.AnnotEvent;
 using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
-using System.ComponentModel;
-using System.Linq;
-using System.Security.AccessControl;
-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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// TextFieldProperty.xaml 的交互逻辑
-    /// </summary>
     public partial class TextFieldProperty : UserControl
     {
 

+ 0 - 36
Demo/Examples/Compdfkit_Tools/PDFView/PDFBookmark/PDFBookmarkControl/CPDFBookmarkControl.xaml.cs

@@ -4,23 +4,11 @@ using ComPDFKitViewer.PdfViewer;
 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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// CPDFBookmarkControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFBookmarkControl : UserControl
     {
         /// <summary>
@@ -34,9 +22,6 @@ namespace Compdfkit_Tools.PDFControl
             Loaded += CPDFBookmarkControl_Loaded;
         }
 
-        /// <summary>
-        /// 控件加载完成 初始化相应事件绑定
-        /// </summary>
         private void CPDFBookmarkControl_Loaded(object sender, RoutedEventArgs e)
         {
             BookmarkAddUI.BookmarkAddEvent += BookmarkAddUI_BookmarkAddEvent;
@@ -64,17 +49,11 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 书签列表点击 跳转到书签页面
-        /// </summary>
         private void BookmarkResultUI_BookmarkClicked(object sender, int e)
         {
             GotoBookmarkPage(e);
         }
 
-        /// <summary>
-        /// 书签删除
-        /// </summary>
         private void BookmarkResultUI_BookmarkDelete(object sender, BookmarkChangeData e)
         {
             if (pdfView == null || pdfView.Document == null)
@@ -85,9 +64,6 @@ namespace Compdfkit_Tools.PDFControl
             pdfView.Document.RemoveBookmark(e.PageIndex);
         }
 
-        /// <summary>
-        /// 书签列表选中 跳转到书签页面
-        /// </summary>
         private void BookmarkResultUI_SelectionChanged(object sender, int e)
         {
             if (e >= 0)
@@ -100,9 +76,6 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 添加书签
-        /// </summary>
         private void BookmarkAddUI_BookmarkAddEvent(object sender, BookmarkChangeData newData)
         {
             if (pdfView == null || pdfView.Document == null || newData==null)
@@ -144,9 +117,6 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 跳转书签页面
-        /// </summary>
         private void GotoBookmarkPage(int pageIndex)
         {
             if (pdfView == null || pdfView.Document == null)
@@ -160,17 +130,11 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 设置PDFViewer
-        /// </summary>
         public void InitWithPDFViewer(CPDFViewer newPDFView)
         {
             pdfView = newPDFView;
         }
 
-        /// <summary>
-        /// 加载书签列表
-        /// </summary>
         public void LoadBookmark()
         {
             if (pdfView == null || pdfView.Document == null)

+ 4 - 28
Demo/Examples/Compdfkit_Tools/PDFView/PDFBookmark/PDFBookmarkUI/CPDFBookmarkAddUI.xaml.cs

@@ -1,31 +1,16 @@
 using System;
-using System.Collections.Generic;
 using System.Globalization;
-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 Compdfkit_Tools.PDFControlUI
 {
     public partial class CPDFBookmarkAddUI : UserControl
     {
-        /// <summary>
-        /// 书签添加按钮点击通知
-        /// </summary>
         public event EventHandler<BookmarkChangeData> BookmarkAddEvent;
-
-        /// <summary>
-        /// 书签输入展开通知
-        /// </summary>
+ 
         public event EventHandler BookmarkInputExpandEvent;
 
         private bool toggleState;
@@ -35,10 +20,7 @@ namespace Compdfkit_Tools.PDFControlUI
         {
             InitializeComponent();
         }
-
-        /// <summary>
-        /// 书签添加界面切换显示添加输入界面
-        /// </summary>
+ 
         private void Border_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
         {
             toggleState = !toggleState;
@@ -49,18 +31,12 @@ namespace Compdfkit_Tools.PDFControlUI
             }
            
         }
-
-        /// <summary>
-        /// 取消添加 隐藏 添加界面
-        /// </summary>
+ 
         private void ButtonCancel_Click(object sender, MouseButtonEventArgs e)
         {
             HideInputUI(true);
         }
-
-        /// <summary>
-        /// 书签添加按钮点击 触发添加通知
-        /// </summary>
+ 
         private void ButtonAdd_Click(object sender, RoutedEventArgs e)
         {
             if(!string.IsNullOrEmpty(BookmarkText.Text) && bookmarkData!=null)

+ 0 - 87
Demo/Examples/Compdfkit_Tools/PDFView/PDFBookmark/PDFBookmarkUI/CPDFBookmarkResultUI.xaml.cs

@@ -2,49 +2,24 @@
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.ComponentModel;
-using System.Diagnostics;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
-using System.Windows.Controls.Primitives;
 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 Compdfkit_Tools.PDFControlUI
 { 
     public partial class CPDFBookmarkResultUI : UserControl
     {
-        /// <summary>
-        /// 书签列表点击选中更改事件
-        /// </summary>
         public event EventHandler<int> SelectionChanged;
 
-        /// <summary>
-        /// 书签删除点击事件
-        /// </summary>
         public event EventHandler<BookmarkChangeData> BookmarkDelete;
 
-        /// <summary>
-        /// 书签修改点击事件
-        /// </summary>
         public event EventHandler<BookmarkChangeData> BookmarkEdit;
 
-
-        /// <summary>
-        /// 点击书签事件
-        /// </summary>
         public event EventHandler<int> BookmarkClicked;
 
-        /// <summary>
-        /// 绑定书签结果集合
-        /// </summary>
         private ObservableCollection<BookmarkBindData> bookmarkResults;
 
         public CPDFBookmarkResultUI()
@@ -55,9 +30,6 @@ namespace Compdfkit_Tools.PDFControlUI
             groupView.GroupDescriptions.Add(new PropertyGroupDescription(nameof(BookmarkBindData.ShowPageIndex)));
         }
 
-        /// <summary>
-        /// 鼠标移入事件 用以控制展示右侧编辑删除面板
-        /// </summary>
         private void Grid_MouseEnter(object sender, MouseEventArgs e)
         {
             Grid sourceGrid=sender as Grid;
@@ -71,9 +43,6 @@ namespace Compdfkit_Tools.PDFControlUI
             }
         }
 
-        /// <summary>
-        /// 鼠标移出事件 用以控制隐藏右侧编辑 删除面板
-        /// </summary>
         private void Grid_MouseLeave(object sender, MouseEventArgs e)
         {
             Grid sourceGrid = sender as Grid;
@@ -87,9 +56,6 @@ namespace Compdfkit_Tools.PDFControlUI
             }
         }
 
-        /// <summary>
-        /// 编辑按钮点击事件 启用书签文本编辑
-        /// </summary>
         private void EditBorder_Click(object sender, RoutedEventArgs e)
         {
             Border sourceBtn =sender as Border;
@@ -114,9 +80,6 @@ namespace Compdfkit_Tools.PDFControlUI
             e.Handled = true;
         }
 
-        /// <summary>
-        /// 删除按钮点击事件 触发删除事件通知
-        /// </summary>
         private void DelBorder_Click(object sender, RoutedEventArgs e)
         {
             Border sourceBtn = sender as Border;
@@ -146,13 +109,6 @@ namespace Compdfkit_Tools.PDFControlUI
             e.Handled = true;
         }
 
-        /// <summary>
-        /// 递归查询指定类型的父节点元素
-        /// </summary>
-        /// <typeparam name="T">父元素节点类型</typeparam>
-        /// <param name="checkElement">要查找的元素</param>
-        /// <param name="parent">查找到的父节点元素</param>
-        /// <returns>查找到对应类型父节点元素则为true</returns>
         private bool FindParent<T>(DependencyObject checkElement,out DependencyObject parent)
         {
             parent = null;
@@ -177,9 +133,6 @@ namespace Compdfkit_Tools.PDFControlUI
             return false;
         }
 
-        /// <summary>
-        /// 将书签列表绑定到UI控件
-        /// </summary>
         public void SetBookmarkResult(List<BindBookmarkResult> results)
         {
             bookmarkResults?.Clear();
@@ -201,10 +154,6 @@ namespace Compdfkit_Tools.PDFControlUI
             NoResultText.Visibility = Visibility.Collapsed;
         }
 
-        /// <summary>
-        /// 获取选中书签结果
-        /// </summary>
-        /// <returns>搜索结果</returns>
         public BindBookmarkResult GetSelectItem()
         {
             BookmarkBindData bindData = ResultListControl.SelectedItem as BookmarkBindData;
@@ -216,11 +165,6 @@ namespace Compdfkit_Tools.PDFControlUI
             return null;
         }
 
-        /// <summary>
-        /// 获取指定索引书签对象
-        /// </summary>
-        /// <param name="index">指定索引</param>
-        /// <returns></returns>
         public BindBookmarkResult GetItem(int index)
         {
             if (index < 0)
@@ -239,9 +183,6 @@ namespace Compdfkit_Tools.PDFControlUI
             return null;
         }
 
-        /// <summary>
-        /// 清除选中结果
-        /// </summary>
         public void ClearSelection()
         {
             int oldSelectionIndex = ResultListControl.SelectedIndex;
@@ -252,10 +193,6 @@ namespace Compdfkit_Tools.PDFControlUI
             }
         }
 
-        /// <summary>
-        /// 设置选中结果
-        /// </summary>
-        /// <param name="selectIndex">选中索引</param>
         public void SelectItem(int selectIndex)
         {
             if (ResultListControl.SelectedIndex != selectIndex)
@@ -264,17 +201,11 @@ namespace Compdfkit_Tools.PDFControlUI
             }
         }
 
-        /// <summary>
-        /// 书签列表选中改变事件
-        /// </summary>
         private void ResultListControl_SelectionChanged(object sender, SelectionChangedEventArgs e)
         {
             SelectionChanged?.Invoke(this, ResultListControl.SelectedIndex);
         }
 
-        /// <summary>
-        /// 书签列表点击书签事件
-        /// </summary>
         private void Grid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
         {
             Grid sourceGrid = sender as Grid;
@@ -288,9 +219,6 @@ namespace Compdfkit_Tools.PDFControlUI
             }
         }
 
-        /// <summary>
-        /// 点击空白清除选中项
-        /// </summary>
         private void ResultListControl_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
         {
             ResultListControl?.UnselectAll();
@@ -299,17 +227,8 @@ namespace Compdfkit_Tools.PDFControlUI
 
     public class BookmarkChangeData
     {
-        /// <summary>
-        /// 页面索引
-        /// </summary>
         public int PageIndex { get; set; }
-        /// <summary>
-        /// 原书签标题
-        /// </summary>
         public string BookmarkTitle { get; set; }
-        /// <summary>
-        /// 修改后的标题
-        /// </summary>
         public string NewTitle { get;set; }
 
         public object BindData { get; set; }
@@ -318,9 +237,6 @@ namespace Compdfkit_Tools.PDFControlUI
     public class BindBookmarkResult:INotifyPropertyChanged
     {
         private int _pageIndex;
-        /// <summary>
-        /// 页面索引
-        /// </summary>
         public int PageIndex 
         {
             get
@@ -338,9 +254,6 @@ namespace Compdfkit_Tools.PDFControlUI
         }
 
         private string _bookmarkTitle;
-        /// <summary>
-        /// 书签标题
-        /// </summary>
         public string BookmarkTitle 
         {
             get

+ 0 - 17
Demo/Examples/Compdfkit_Tools/PDFView/PDFDisplaySettings/PDFDisplaySettingsControl/CPDFDisplaySettingsControl.xaml.cs

@@ -1,26 +1,12 @@
 using Compdfkit_Tools.PDFControlUI;
 using ComPDFKitViewer;
 using ComPDFKitViewer.PdfViewer;
-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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// CPDFDisplaySettingsControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFDisplaySettingsControl : UserControl
     {
         /// <summary>
@@ -71,9 +57,6 @@ namespace Compdfkit_Tools.PDFControl
            pdfView?.ChangeViewMode(e);
         }
 
-        /// <summary>
-        /// 设置PDFViewer
-        /// </summary>
         public void InitWithPDFViewer(CPDFViewer newPDFView)
         {
             pdfView = newPDFView;

+ 0 - 14
Demo/Examples/Compdfkit_Tools/PDFView/PDFDisplaySettings/PDFDisplaySettingsControl/CPDFDrawModeControl.xaml.cs

@@ -1,25 +1,11 @@
 using ComPDFKitViewer;
 using ComPDFKitViewer.PdfViewer;
-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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// PDFDrawModeControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFDrawModeControl : UserControl
     {
         public CPDFViewer pdfViewer;

+ 0 - 3
Demo/Examples/Compdfkit_Tools/PDFView/PDFDisplaySettings/PDFDisplaySettingsControl/CPDFViewModeControl.xaml.cs

@@ -16,9 +16,6 @@ using System.Windows.Shapes;
 
 namespace Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// CPDFViewModeControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFViewModeControl : UserControl
     {
         public CPDFViewer pdfViewer;

+ 0 - 3
Demo/Examples/Compdfkit_Tools/PDFView/PDFDisplaySettings/PDFDisplaySettingsUI/CPDFDrawModeUI.xaml.cs

@@ -17,9 +17,6 @@ using System.Windows.Shapes;
 
 namespace Compdfkit_Tools.PDFControlUI
 {
-    /// <summary>
-    /// DrawModeUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFDrawModeUI : UserControl
     {
         public event EventHandler<string> SetDrawModeEvent;

+ 0 - 12
Demo/Examples/Compdfkit_Tools/PDFView/PDFDisplaySettings/PDFDisplaySettingsUI/CPDFViewModeUI.xaml.cs

@@ -18,27 +18,15 @@ using System.Windows.Shapes;
 
 namespace Compdfkit_Tools.PDFControlUI
 {
-    /// <summary>
-    /// browsemode.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFViewModeUI : UserControl
     {
         public event EventHandler<string> SetContinuousEvent;
         public event EventHandler<string> SetViewModeEvent;
 
-        /// <summary>
-        /// 水平垂直视图模式改变
-        /// </summary>
         public event EventHandler<SplitMode> SplitModeChanged;
 
-        /// <summary>
-        /// 单页双页书本模式改变
-        /// </summary>
         public event EventHandler<ViewMode> ViewModeChanged;
 
-        /// <summary>
-        /// 自动页面裁剪
-        /// </summary>
         public event EventHandler<bool> CropModeChanged;
 
 

+ 0 - 16
Demo/Examples/Compdfkit_Tools/PDFView/PDFInfo/CPDFAbstractInfoControl.xaml.cs

@@ -1,26 +1,10 @@
 using ComPDFKit.PDFDocument;
 using Compdfkit_Tools.Helper;
 using ComPDFKitViewer.PdfViewer;
-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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// PDFAbstractInfoControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFAbstractInfoControl : UserControl
     {
         public CPDFViewer pdfViewer;

+ 0 - 16
Demo/Examples/Compdfkit_Tools/PDFView/PDFInfo/CPDFCreateInfoControl.xaml.cs

@@ -2,27 +2,11 @@
 using Compdfkit_Tools.Helper;
 using ComPDFKitViewer.PdfViewer;
 using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
 using System.Text.RegularExpressions;
-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.Markup;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Navigation;
-using System.Windows.Shapes;
 
 namespace Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// PDFCreateInfoControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFCreateInfoControl : UserControl
     {
         public CPDFViewer pdfViewer;

+ 1 - 19
Demo/Examples/Compdfkit_Tools/PDFView/PDFInfo/CPDFInfoControl.xaml.cs

@@ -1,26 +1,8 @@
-using ComPDFKit.PDFDocument;
-using Compdfkit_Tools;
-using ComPDFKitViewer.PdfViewer;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using System.Windows;
+using ComPDFKitViewer.PdfViewer;
 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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// PDFDocumentInfoControl.xaml 的交互逻辑
-    /// </summary>xc
     public partial class CPDFInfoControl : UserControl
     {
         public CPDFViewer pdfViewer;

+ 0 - 16
Demo/Examples/Compdfkit_Tools/PDFView/PDFInfo/CPDFSecurityInfoControl.xaml.cs

@@ -1,25 +1,9 @@
 using ComPDFKit.PDFDocument;
 using ComPDFKitViewer.PdfViewer;
-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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// PDFSecurityInfoControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFSecurityInfoControl : UserControl
     {
         private string T_Allowed = "Allowed";

+ 0 - 13
Demo/Examples/Compdfkit_Tools/PDFView/PDFOutline/PDFOutlineControl/CPDFOutlineControl.xaml.cs

@@ -5,24 +5,11 @@ using ComPDFKitViewer.PdfViewer;
 using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
-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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// CPDFOutlineControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFOutlineControl : UserControl
     {
         CPDFViewer pdfViewer;

+ 0 - 40
Demo/Examples/Compdfkit_Tools/PDFView/PDFOutline/PDFOutlineUI/CPDFOutlineUI.xaml.cs

@@ -1,76 +1,36 @@
 using ComPDFKit.PDFDocument;
-using ComPDFKit.PDFDocument.Action;
-using Compdfkit_Tools.PDFControl;
-using ComPDFKitViewer.PdfViewer;
 using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.ComponentModel;
-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 Compdfkit_Tools.PDFControlUI
 {
     public partial class CPDFOutlineNode
     {
-        /// <summary>
-        /// 大纲父节点
-        /// </summary>
         public CPDFOutlineNode ParentNode = null;
 
-        /// <summary>
-        /// 当前大纲
-        /// </summary>
         public CPDFOutline PDFOutline = null;
 
-        /// <summary>
-        /// 当前node名
-        /// </summary>
         public string CurrentNodeName = string.Empty;
 
-        /// <summary>
-        /// 子大纲集合
-        /// </summary>
         public ObservableCollection<CPDFOutlineNode> ChildrenNodeList
         {
             get;
             set;
         }
 
-        /// <summary>
-        /// 当前展开状态
-        /// </summary>
         public bool IsExpanded = false;
 
-        /// <summary>
-        /// 当前节点页面
-        /// </summary>
         public int PageIndex = 0;
 
-        /// <summary>
-        /// 当前节点所在页面中的水平位置
-        /// </summary>
         public double PositionX;
 
-        /// <summary>
-        /// 当前节点所在页面中的垂直位置
-        /// </summary>
         public double PositionY;
     }
 
-    /// <summary>
-    /// CPDFOutlineUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFOutlineUI : UserControl, INotifyPropertyChanged
     {
         public event PropertyChangedEventHandler PropertyChanged;

+ 1 - 16
Demo/Examples/Compdfkit_Tools/PDFView/PDFScaling/PDFScalingControl/CPDFScalingControl.xaml.cs

@@ -1,26 +1,11 @@
-using Compdfkit_Tools.Common;
-using ComPDFKitViewer;
+using ComPDFKitViewer;
 using ComPDFKitViewer.PdfViewer;
 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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// PDFScallingControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFScalingControl : UserControl
     {
         public CPDFViewer pdfViewer;

+ 1 - 18
Demo/Examples/Compdfkit_Tools/PDFView/PDFScaling/PDFScalingUI/CPDFScalingUI.xaml.cs

@@ -1,30 +1,13 @@
-using Compdfkit_Tools.Common;
-using ComPDFKitViewer.PdfViewer;
+using ComPDFKitViewer.PdfViewer;
 using System;
-using System.Collections.Generic;
 using System.ComponentModel;
-using System.Linq;
-using System.Runtime.CompilerServices;
-using System.Text;
 using System.Text.RegularExpressions;
-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;
-using System.Xml.Linq;
-using static System.Net.Mime.MediaTypeNames;
 
 namespace Compdfkit_Tools.PDFControlUI
 {
-    /// <summary>
-    /// PDFScalingControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFScalingUI : UserControl, INotifyPropertyChanged
     {
         public CPDFViewer PDFView { get; set; }

+ 0 - 41
Demo/Examples/Compdfkit_Tools/PDFView/PDFSearch/PDFSearchControl/CPDFSearchControl.xaml.cs

@@ -3,25 +3,12 @@ using Compdfkit_Tools.PDFControlUI;
 using ComPDFKitViewer.PdfViewer;
 using System;
 using System.Collections.Generic;
-using System.Diagnostics;
-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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// UserControl1.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFSearchControl : UserControl
     {
         /// <summary>
@@ -43,9 +30,6 @@ namespace Compdfkit_Tools.PDFControl
             Loaded += PDFSearch_Loaded;
         }
 
-        /// <summary>
-        /// 设置PDFViewer
-        /// </summary>
         public void InitWithPDFViewer(CPDFViewer newPDFView)
         {
             if(pdfView!=newPDFView)
@@ -64,17 +48,11 @@ namespace Compdfkit_Tools.PDFControl
             SearchResult.SelectionChanged += SearchResult_SelectionChanged;
         }
 
-        /// <summary>
-        /// 清除搜索
-        /// </summary>
         private void SearchInput_ClearEvent(object sender, EventArgs e)
         {
             ClearSearchResult();
         }
 
-        /// <summary>
-        ///高亮上一个搜索结果
-        /// </summary>
         private void SearchInput_FindPreviousEvent(object sender, EventArgs e)
         {
             if (currentHighLightIndex > 0)
@@ -85,9 +63,6 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 高亮下一个搜索结果
-        /// </summary>
         private void SearchInput_FindNextEvent(object sender, EventArgs e)
         {
             currentHighLightIndex++;
@@ -98,9 +73,6 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 高亮选中搜索结果
-        /// </summary>
         private void SearchResult_SelectionChanged(object sender, int e)
         {
             currentHighLightIndex = e;
@@ -109,9 +81,6 @@ namespace Compdfkit_Tools.PDFControl
             ResultText.Text = string.Format("Results:{0}/{1}", e+1,ResultCount);
         }
 
-        /// <summary>
-        /// 搜索完成绑定数据
-        /// </summary>
         private void TextSearch_SearchCompletedHandler(object sender, TextSearchResult e)
         {
             Dispatcher.Invoke(() =>
@@ -148,10 +117,6 @@ namespace Compdfkit_Tools.PDFControl
             });
         }
 
-        /// <summary>
-        /// 搜索执行事件
-        /// </summary>
-
         private void SearchInput_SearchEvent(object sender, string e)
         {
             if (string.IsNullOrEmpty(e))
@@ -172,9 +137,6 @@ namespace Compdfkit_Tools.PDFControl
             }
         }
 
-        /// <summary>
-        /// 高亮搜索结果
-        /// </summary>
         private void HighLightSelectResult(BindSearchResult result)
         {
             if (result == null)
@@ -194,9 +156,6 @@ namespace Compdfkit_Tools.PDFControl
             pdfView.SetPageSelectText(selectList, highLightBrush);
         }
 
-        /// <summary>
-        /// 清除搜索结果
-        /// </summary>
         private void ClearSearchResult()
         {
             SearchResult?.SetSearchResult(null);

+ 0 - 37
Demo/Examples/Compdfkit_Tools/PDFView/PDFSearch/PDFSearchUI/CPDFSearchInputUI.xaml.cs

@@ -1,38 +1,16 @@
 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 Compdfkit_Tools.PDFControlUI
 {
-    /// <summary>
-    /// 搜索输入控件
-    /// </summary>
     public partial class CPDFSearchInputUI : UserControl
     {
-        /// <summary>
-        /// 搜索事件
-        /// </summary>
         public event EventHandler<string> SearchEvent;
 
-        /// <summary>
-        /// 清除搜索输入
-        /// </summary>
         public event EventHandler ClearEvent;
 
-        /// <summary>
-        /// 搜索关键词
-        /// </summary>
         public string SearchKeyWord
         {
             get
@@ -45,9 +23,6 @@ namespace Compdfkit_Tools.PDFControlUI
             }
         }
 
-        /// <summary>
-        /// 搜索输入文本框宽度
-        /// </summary>
         public double InputTextBoxWidth
         {
             get
@@ -60,9 +35,6 @@ namespace Compdfkit_Tools.PDFControlUI
             }
         }
 
-        /// <summary>
-        /// 搜索输入文本框高度
-        /// </summary>
         public double InputTextBoxHeight
         {
             get
@@ -80,9 +52,6 @@ namespace Compdfkit_Tools.PDFControlUI
             InitializeComponent();
         }
 
-        /// <summary>
-        /// 输入框回车搜索
-        /// </summary>
         private void SearchTextBox_KeyDown(object sender, KeyEventArgs e)
         {
             if (e.Key == Key.Enter && string.IsNullOrEmpty(SearchKeyWord)==false)
@@ -91,18 +60,12 @@ namespace Compdfkit_Tools.PDFControlUI
             }
         }
 
-        /// <summary>
-        /// 清除搜索框
-        /// </summary>
         private void TextClear_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
         {
             SearchKeyWord = string.Empty;
             ClearEvent?.Invoke(this,new EventArgs());
         }
 
-        /// <summary>
-        /// 搜索按钮点击
-        /// </summary>
         private void SearchBtn_Click(object sender, RoutedEventArgs e)
         {
             if (string.IsNullOrEmpty(SearchKeyWord) == false)

+ 9 - 34
Demo/Examples/Compdfkit_Tools/PDFView/PDFSearch/PDFSearchUI/CPDFSearchResultUI.xaml.cs

@@ -21,19 +21,10 @@ using System.Windows.Shapes;
 
 namespace Compdfkit_Tools.PDFControlUI
 {
-    /// <summary>
-    /// 搜索结果控件
-    /// </summary>
     public partial class CPDFSearchResultUI : UserControl
     {
-        /// <summary>
-        /// 搜索结果列表点击选中事件
-        /// </summary>
         public event EventHandler<int> SelectionChanged;
 
-        /// <summary>
-        /// 绑定搜索结果集合
-        /// </summary>
         private ObservableCollection<TextBindData> searchResults;
 
         public CPDFSearchResultUI()
@@ -44,18 +35,11 @@ namespace Compdfkit_Tools.PDFControlUI
             groupView.GroupDescriptions.Add(new PropertyGroupDescription(nameof(TextBindData.ShowPageIndex)));
         }
 
-        /// <summary>
-        /// 选中改变事件
-        /// </summary>
         private void ListView_SelectionChanged(object sender, SelectionChangedEventArgs e)
         {
             InvokeSelectionChangedEvent(ResultListControl.SelectedIndex);
         }
 
-        /// <summary>
-        /// 绑定搜索结果集合
-        /// </summary>
-        /// <param name="results"></param>
         public void SetSearchResult(List<BindSearchResult> results)
         {
             searchResults.Clear();
@@ -78,10 +62,6 @@ namespace Compdfkit_Tools.PDFControlUI
             NoResultText.Visibility = Visibility.Collapsed;
         }
 
-        /// <summary>
-        /// 获取选中搜索结果
-        /// </summary>
-        /// <returns>搜索结果</returns>
         public BindSearchResult GetSelectItem()
         {
             TextBindData bindData = ResultListControl.SelectedItem as TextBindData;
@@ -93,24 +73,19 @@ namespace Compdfkit_Tools.PDFControlUI
             return null;
         }
 
-        /// <summary>
-        /// 获取搜索结果对象
-        /// </summary>
-        /// <param name="index">指定索引</param>
-        /// <returns></returns>
         public BindSearchResult GetItem(int index)
         {
-            if(index < 0) 
+            if (index < 0)
             {
                 return null;
             }
-            if(ResultListControl.HasItems && ResultListControl.Items.Count>index)
+            if (ResultListControl.HasItems && ResultListControl.Items.Count > index)
             {
                 TextBindData bindData = ResultListControl.Items[index] as TextBindData;
-                if(bindData != null)
+                if (bindData != null)
                 {
                     return bindData.BindProperty;
-                } 
+                }
             }
 
             return null;
@@ -215,12 +190,12 @@ namespace Compdfkit_Tools.PDFControlUI
                 });
 
         /// <summary>
-        /// 获取文档流数据
+        /// Get document stream data
         /// </summary>
-        /// <param name="content">搜索文字结果</param>
-        /// <param name="keyword">搜索关键字</param>
-        /// <param name="textColor">高亮文字颜色</param>
-        /// <returns>文档流数据</returns>
+        /// <param name="content">Search text results</param>
+        /// <param name="keyword">Search for keywords</param>
+        /// <param name="textColor">Highlight text color</param>
+        /// <returns>Document flow data</returns>
         public static FlowDocument GetFlowDocument(string content, string keyword, Color textColor)
         {
             FlowDocument Document = new FlowDocument();

+ 10 - 18
Demo/Examples/Compdfkit_Tools/PDFView/PDFThumbnail/PDFThumbnailControl/CPdfThumbnailControl.xaml.cs

@@ -2,19 +2,11 @@
 using ComPDFKitViewer.PdfViewer;
 using System;
 using System.Collections.Generic;
-using System.Diagnostics;
-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 Compdfkit_Tools.PDFControl
 {
@@ -26,22 +18,22 @@ namespace Compdfkit_Tools.PDFControl
         private CPDFViewer pdfView;
 
         /// <summary>
-        /// 缩略图是否加载过
+        /// Whether the thumbnail has been loaded
         /// </summary>
         public bool ThumbLoaded { get; set; }
 
         /// <summary>
-        /// 缩放比例集合
+        /// A collection of scale factors
         /// </summary>
         private int[] thumbnailSize = { 50, 100, 150, 200, 300, 500 };
 
         /// <summary>
-        /// 缩放系数
+        /// Scale factor
         /// </summary>
         private int zoomLevel = 2;
 
         /// <summary>
-        /// 缩略图数据列表
+        /// A list of thumbnail data
         /// </summary>
         private List<ThumbnailItem> thumbnailItemList { get; set; } = new List<ThumbnailItem>();
 
@@ -54,7 +46,7 @@ namespace Compdfkit_Tools.PDFControl
         }
 
         /// <summary>
-        /// 加载完成事件
+        /// Load completion event
         /// </summary>
         private void PdfThumbnail_Loaded(object sender, RoutedEventArgs e)
         {
@@ -63,7 +55,7 @@ namespace Compdfkit_Tools.PDFControl
         }
 
         /// <summary>
-        /// 缩略图列表选中更改事件
+        /// The thumbnail list selects the change event
         /// </summary>
         private void ThumbControl_SelectionChanged(object sender, int e)
         {
@@ -71,7 +63,7 @@ namespace Compdfkit_Tools.PDFControl
         }
 
         /// <summary>
-        /// 缩略图内容滚动事件
+        /// Thumbnail content scrolling events
         /// </summary>
         private void ThumbControl_ViewChanged(object sender, ScrollChangedEventArgs e)
         {
@@ -79,7 +71,7 @@ namespace Compdfkit_Tools.PDFControl
         }
 
         /// <summary>
-        /// 加载缩略图
+        /// Load thumbnails
         /// </summary>
         public void LoadThumb()
         {
@@ -111,7 +103,7 @@ namespace Compdfkit_Tools.PDFControl
         }
 
         /// <summary>
-        /// 设置PDFViewer
+        /// Set up PDFViewer
         /// </summary>
         public void InitWithPDFViewer(CPDFViewer newPDFView)
         {
@@ -119,7 +111,7 @@ namespace Compdfkit_Tools.PDFControl
         }
 
         /// <summary>
-        /// 设置选中缩略图
+        /// Set the selected thumbnail
         /// </summary>
         public void SelectThumbItem(int newIndex)
         {

+ 16 - 28
Demo/Examples/Compdfkit_Tools/PDFView/PDFThumbnail/PDFThumbnailUI/CPdfThumbnailUI.xaml.cs

@@ -1,37 +1,25 @@
 using System;
 using System.Collections.Generic;
-using System.ComponentModel;
-using System.Diagnostics;
-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;
-using System.Xml.Linq;
 
 namespace Compdfkit_Tools.PDFControlUI
 {
     public partial class CPDFThumbnailUI : UserControl
     {
         /// <summary>
-        /// 缩略图列表点击选中事件
+        /// Click to select the event in the thumbnail list
         /// </summary>
         public event EventHandler<int> SelectionChanged;
 
         /// <summary>
-        /// 滚动状态改变事件
+        /// Scroll state change event
         /// </summary>
         public event EventHandler<ScrollChangedEventArgs> ViewChanged;
 
         /// <summary>
-        /// 缩略图结果列表
+        /// A list of thumbnail results
         /// </summary>
         private List<ThumbnailItem> thumbResultList=new List<ThumbnailItem>();
         public CPDFThumbnailUI()
@@ -40,7 +28,7 @@ namespace Compdfkit_Tools.PDFControlUI
         }
 
         /// <summary>
-        /// 选中结果改变事件
+        /// Select Result Change event
         /// </summary>
         private void ThumbListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
         {
@@ -48,7 +36,7 @@ namespace Compdfkit_Tools.PDFControlUI
         }
 
         /// <summary>
-        /// 设置缩略图列表
+        /// Set the thumbnail list
         /// </summary>
         /// <param name="thumbList"></param>
         public void SetThumbResult(List<ThumbnailItem> thumbList)
@@ -65,7 +53,7 @@ namespace Compdfkit_Tools.PDFControlUI
         }
 
         /// <summary>
-        /// 内容滚动事件
+        /// Content scrolling events
         /// </summary>
         private void ThumbListBox_ScrollChanged(object sender, ScrollChangedEventArgs e)
         {
@@ -73,7 +61,7 @@ namespace Compdfkit_Tools.PDFControlUI
         }
 
         /// <summary>
-        /// 判断指定对象是否可见
+        /// Determines whether the specified object is visible
         /// </summary>
         public bool IsItemVisible(ThumbnailItem checkItem)
         {
@@ -122,7 +110,7 @@ namespace Compdfkit_Tools.PDFControlUI
         }
 
         /// <summary>
-        /// 选中某个对象
+        /// Select an object
         /// </summary>
         public void SelectItem(int checkIndex)
         {
@@ -140,32 +128,32 @@ namespace Compdfkit_Tools.PDFControlUI
     }
 
     /// <summary>
-    /// 缩略图对象
+    /// Thumbnail object
     /// </summary>
     public class ThumbnailItem
     {
         /// <summary>
-        /// 图像宽度
+        /// Image width
         /// </summary>
         public int ImageWidth { get; set; }
 
         /// <summary>
-        /// 图像高度
+        /// Image height
         /// </summary>
         public int ImageHeight { get; set; }
 
         /// <summary>
-        ///缩略图宽度
+        ///Thumbnail width
         /// </summary>
         public int ThumbnailWidth { get; set; }
 
         /// <summary>
-        /// 缩略图高度
+        /// Thumbnail height
         /// </summary>
         public int ThumbnailHeight { get; set; }
 
         /// <summary>
-        /// 展示页码
+        /// Display page numbers
         /// </summary>
         public string ShowPageText
         {
@@ -181,12 +169,12 @@ namespace Compdfkit_Tools.PDFControlUI
         }
 
         /// <summary>
-        /// 页面索引(以0开始)
+        /// Page index (starts with 0)
         /// </summary>
         public int PageIndex { get; set; } = -1;
 
         /// <summary>
-        /// 缩略图像内容
+        /// Thumbnails are like content
         /// </summary>
         public Image ImageData { get; set; } = new Image();
     }

+ 0 - 13
Demo/Examples/Compdfkit_Tools/PDFView/PDFViewControl/PDFViewControl.xaml.cs

@@ -5,27 +5,14 @@ using ComPDFKitViewer.AnnotEvent;
 using ComPDFKitViewer.PdfViewer;
 using Microsoft.Win32;
 using System;
-using System.Collections.Generic;
 using System.Diagnostics;
 using System.IO;
-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 Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// PDFViewControl.xaml 的交互逻辑
-    /// </summary>
     public partial class PDFViewControl : UserControl
     {
         public CPDFViewer PDFView { get;private set; }

+ 23 - 33
Demo/Examples/Compdfkit_Tools/PageEdit/PDFPageEdit/CPDFPageEditControl.xaml.cs

@@ -4,17 +4,12 @@ using System;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
 using System.Diagnostics;
-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;
 using Winform = System.Windows.Forms;
 using static Compdfkit_Tools.Helper.CommonHelper;
@@ -24,19 +19,14 @@ using Microsoft.Win32;
 using System.Windows.Controls.Primitives;
 using System.IO;
 using System.Windows.Media.Animation;
-using Compdfkit_Tools.PDFControlUI;
 
 namespace Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// CPDFPageEditControl.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFPageEditControl : UserControl
     {
-        #region  辅助类 辅助方法
+        #region  Helper class Helper methods
         internal static class Utils
         {
-            //根据子元素查找父元素
             public static T FindVisualParent<T>(DependencyObject obj) where T : class
             {
                 while (obj != null)
@@ -85,34 +75,34 @@ namespace Compdfkit_Tools.PDFControl
         private bool isZooming = false;
         private int[] thumbnailSize = { 100, 150, 200, 300, 500 };
 
-        private bool startChoose = false;   //是否开始多选(框选)
-        private int speed = 0;  //滚动速度
+        private bool startChoose = false;   //Whether to start multiple selections (box selection)
+        private int speed = 0;  //Scrolling speed
 
-        //鼠标点击时在item中的位置  实现类似点哪拖哪的细节
+        //The position in the item when the mouse clicks  
         private double item_x;
         private double item_y;
-        private int InsertIndex = -1;//插入标记代表的插入位置
+        private int InsertIndex = -1;
 
-        //拖动的Item
+        //Drag the Item
         private ListBoxItem tempItem;
 
-        /////鼠标是否停留在item前半部
-        /////显示在前半部时,获取的index为实际索引值
-        /////显示在后半部时,获取的index需要+1
+        //Whether the mouse stays on the front half of the item
+        //When the first half is displayed, the index obtained is the actual index value
+        //When the second half is displayed, the obtained index needs add 1
         //private bool isFrontHalf = false;
 
         private bool isDraging = false;
 
-        //是否正在从外部拖入文件
+        //Whether the file is being dragged in from the outside
         private bool isDragingEnter = false;
 
-        //用来辅助实现多选后再单选的问题
+        //It is used to assist in the implementation of multi-select and then single-select problems
         private bool iskeyDown = false;
 
-        //页面顺序或总数改变的情况
+        //When the order or total number of pages changes
         public event RoutedEventHandler PageMoved;
 
-        //缩放时
+        //When zooming
         public event RoutedEventHandler ChangedZoomFactor;
 
 
@@ -214,16 +204,16 @@ namespace Compdfkit_Tools.PDFControl
 
         private void Timer_Tick(object sender, EventArgs e)
         {
-            // 在定时器触发后,将 Border 控件隐藏
+            // Hide the Border control after the timer is triggered
             AlertBorder.Visibility = Visibility.Collapsed;
 
-            // 停止定时器
+            // Stop the timer
             DispatcherTimer timer = (DispatcherTimer)sender;
             timer.Stop();
             timer.Tick -= Timer_Tick;
         }
 
-        #region 快捷键绑定
+        #region Shortcut key binding
         private void CommandBinding_Executed_LeftRotate(object sender, ExecutedRoutedEventArgs e)
         {
             DoRotate(-90);
@@ -2310,7 +2300,7 @@ namespace Compdfkit_Tools.PDFControl
         private void UserControl_SizeChanged(object sender, SizeChangedEventArgs e)
         {
             DoSelectItems();
-            ItemsInViewHitTest();//第一次加载时触发的Scollchange 直接刷新界面,减少白板显示时间
+            ItemsInViewHitTest();//Scollchange, triggered on the first load, directly refreshes the interface and reduces the whiteboard display time
         }
     }
 
@@ -2333,28 +2323,28 @@ namespace Compdfkit_Tools.PDFControl
     }
 
     /// <summary>
-    /// 用于提取的传参类
+    /// The parameter class used for extraction
     /// </summary>
     public class ExtractEventClass : EventArgs
     {
         /// <summary>
-        /// 1-全部页面 2-奇数页面 3-偶数页面 4-自定义范围
+        /// 1- All pages 2 - Odd pages 3 - Even pages 4 - Custom ranges
         /// </summary>
         public int PageMode;
         /// <summary>
-        /// 页码 PageMode =1,2,3 PageParm = null;
+        ///  PageMode = 1,2,3 PageParm = null;
         /// </summary>
         public List<int> PageParm;
         /// <summary>
-        /// 自定模式下 把文本内容传过去
+        /// In custom mode, the text content is passed over
         /// </summary>
         public string PageName = "";
         /// <summary>
-        /// 是否拆分为单文件
+        /// Whether to split into a single file
         /// </summary>
         public bool ExtractToSingleFile;
         /// <summary>
-        /// 提取后删除页面
+        /// Delete the page after extraction
         /// </summary>
         public bool DeleteAfterExtract;
     }

+ 0 - 14
Demo/Examples/Compdfkit_Tools/PageEdit/PDFPageExtract/CPDFPageExtractUI.xaml.cs

@@ -1,23 +1,9 @@
 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 Compdfkit_Tools.PDFControlUI
 {
-    /// <summary>
-    /// CPDFPageEditUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFPageExtractUI : UserControl
     {
         public int MaxiumIndex

+ 0 - 19
Demo/Examples/Compdfkit_Tools/PageEdit/PDFPageExtract/CPDFPageExtractWindow.xaml.cs

@@ -2,26 +2,11 @@
 using Compdfkit_Tools.PDFControlUI;
 using System;
 using System.Collections.Generic;
-using System.Linq;
-using System.Reflection;
-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.Forms;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Shapes;
 using MessageBox = System.Windows.MessageBox;
 
 namespace Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// CPDFPageExtractWindow.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFPageExtractWindow : Window
     {
         private string pageRangeString = string.Empty;
@@ -142,18 +127,14 @@ namespace Compdfkit_Tools.PDFControl
             CPDFPageExtractUI.CancelEvent -= CPDFPageExtractUI_CancelEvent;
         }
 
-        // 弹窗关闭时的处理逻辑
         private void CloseWindow(ExtractEventClass dialogResult)
         {
-            // 触发关闭事件,并传递返回值
             DialogClosed?.Invoke(this, new ExtractDialogCloseEventArgs(dialogResult));
 
-            // 关闭窗口
             Close();
         }
     }
 
-    // 定义关闭事件参数类,包含返回值
     public class ExtractDialogCloseEventArgs : EventArgs
     {
         public ExtractEventClass DialogResult { get; set; }

+ 0 - 15
Demo/Examples/Compdfkit_Tools/PageEdit/PDFPageInsert/CPDFPageInsertUI.xaml.cs

@@ -1,29 +1,14 @@
 using Compdfkit_Tools.Common;
 using Compdfkit_Tools.Helper;
-using Compdfkit_Tools.PDFControl;
 using ComPDFKitViewer.PdfViewer;
 using System;
-using System.Collections.Generic;
 using System.ComponentModel;
-using System.Linq;
 using System.Runtime.CompilerServices;
-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 Compdfkit_Tools.PDFControlUI
 {
-    /// <summary>
-    /// CPDFPageInsertUI.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFPageInsertUI : UserControl, INotifyPropertyChanged
     {
         private string password = string.Empty;

+ 0 - 17
Demo/Examples/Compdfkit_Tools/PageEdit/PDFPageInsert/CPDFPageInsertWindow.xaml.cs

@@ -2,23 +2,10 @@
 using Compdfkit_Tools.PDFControlUI;
 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.Shapes;
 
 namespace Compdfkit_Tools.PDFControl
 {
-    /// <summary>
-    /// CPDFPageInsertWindow.xaml 的交互逻辑
-    /// </summary>
     public partial class CPDFPageInsertWindow : Window
     {
         public InsertEventClass Result = new InsertEventClass();
@@ -133,13 +120,10 @@ namespace Compdfkit_Tools.PDFControl
             Result.InsertIndex = e;
         }
 
-        // 弹窗关闭时的处理逻辑
         private void CloseWindow(InsertEventClass dialogResult)
         {
-            // 触发关闭事件,并传递返回值
             DialogClosed?.Invoke(this, new InsertDialogCloseEventArgs(dialogResult));
 
-            // 关闭窗口
             Close();
         }
 
@@ -150,7 +134,6 @@ namespace Compdfkit_Tools.PDFControl
         }
     }
      
-    // 定义关闭事件参数类,包含返回值
     public class InsertDialogCloseEventArgs : EventArgs
     {
         public InsertEventClass DialogResult { get; set; }

+ 8 - 14
Demo/Examples/DocsEditor/MainWindow.xaml.cs

@@ -4,18 +4,10 @@ using ComPDFKitViewer.AnnotEvent;
 using ComPDFKitViewer;
 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;
 using System.Diagnostics;
 using System.IO;
 using System.Drawing;
@@ -24,13 +16,13 @@ using System.Runtime.CompilerServices;
 using ComPDFKit.PDFDocument;
 using Microsoft.Win32;
 using System.Windows.Controls.Primitives;
-using ComPDFKit.PDFPage;
 using ComPDFKitViewer.PdfViewer;
 
 namespace DocsEditor
 {
     public partial class MainWindow : Window, INotifyPropertyChanged
     {
+        #region Property
         private bool isFirstLoad = true;
         private string currentMode = "Page Edit";
 
@@ -55,6 +47,9 @@ namespace DocsEditor
 
 
         public event PropertyChangedEventHandler PropertyChanged;
+
+        #endregion
+
         protected void OnPropertyChanged([CallerMemberName] string name = null)
         {
             PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
@@ -608,11 +603,8 @@ namespace DocsEditor
             PopupBorder.Visibility = Visibility.Visible;
         }
 
-        private void InitPageEditControl()
-        {
-
-        }
-
+        #region Selection changed
+            
         private void ViewComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
         {
             if (isFirstLoad)
@@ -672,6 +664,8 @@ namespace DocsEditor
             currentMode = (string)item.Content;
         }
 
+        #endregion
+
         private void CPDFPageEditBarControl_PageEditEvent(object sender, string e)
         {
             pageEditControl.PageEdit(e);

+ 107 - 106
Demo/Examples/Forms/MainWindow.xaml.cs

@@ -9,18 +9,11 @@ using System.Collections.Generic;
 using System.Diagnostics;
 using System.IO;
 using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
 using System.Windows.Controls.Primitives;
-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;
 using System.Drawing;
 using ComPDFKit.PDFPage;
 using ComPDFKitViewer.PdfViewer;
@@ -79,12 +72,7 @@ namespace Forms
 
         public event PropertyChangedEventHandler PropertyChanged;
         #endregion
-
-        protected void OnPropertyChanged([CallerMemberName] string name = null)
-        {
-            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
-        }
-
+         
         public MainWindow()
         {
             InitializeComponent();
@@ -99,9 +87,20 @@ namespace Forms
             fromPropertyControl = new FromPropertyControl();
             LoadDefaultDocument();
         }
+
+        private void PDFFormTool_Loaded(object sender, RoutedEventArgs e)
+        {
+            LoadPDFFormTool = true;
+
+        }
+
+        private void PDFFormTool_Unloaded(object sender, RoutedEventArgs e)
+        {
+            LoadPDFFormTool = false;
+        }
         #endregion
 
-        #region Open and close document
+        #region Open, save and close document
         private void LoadDocument()
         {
             pdfViewControl.PDFView?.Load();
@@ -141,13 +140,64 @@ namespace Forms
             pdfViewControl.PDFView.InitDocument(defaultFilePath);
             LoadDocument();
         }
+         
+        public void InitialPDFViewControl(PDFViewControl newPDFViewer)
+        {
+            PDFFormTool.InitWithPDFViewer(newPDFViewer.PDFView, fromPropertyControl);
+            fromPropertyControl.SetPDFViewer(newPDFViewer.PDFView);
+            PDFFormTool.ClearAllToolState();
+            newPDFViewer.PDFView.AnnotEditHandler += PDFView_AnnotEditHandler;
+            newPDFViewer.PDFView.AnnotActiveHandler += PDFView_AnnotActiveHandler;
+            newPDFViewer.CustomSignHandle = true;
+            newPDFViewer.PDFView.WidgetClickHandler += PDFView_WidgetClickHandler;
+        }
+         
+        private void SaveFile()
+        {
+            if (pdfViewControl != null && pdfViewControl.PDFView != null && pdfViewControl.PDFView.Document != null)
+            {
+                CPDFDocument pdfDoc = pdfViewControl.PDFView.Document;
+                if (pdfDoc.WriteToLoadedPath())
+                {
+                    pdfViewControl.PDFView.UndoManager.CanSave = false;
+                    return;
+                }
+
+                SaveFileDialog saveDialog = new SaveFileDialog();
+                saveDialog.Filter = "(*.pdf)|*.pdf";
+                saveDialog.DefaultExt = ".pdf";
+                saveDialog.OverwritePrompt = true;
+
+                if (saveDialog.ShowDialog() == true)
+                {
+                    pdfDoc.WriteToFilePath(saveDialog.FileName);
+                }
+            }
+        }
+
         #endregion
 
+        #region Property changed 
+
+        protected void OnPropertyChanged([CallerMemberName] string name = null)
+        {
+            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(name));
+        }
+
+        private void PdfViewer_InfoChanged(object sender, KeyValuePair<string, object> e)
+        {
+            if (e.Key == "Zoom")
+            {
+                CPDFSaclingControl.SetZoomTextBoxText(string.Format("{0}", (int)((double)e.Value * 100)));
+            }
+        }
+
 
         private void UndoManager_PropertyChanged(object sender, PropertyChangedEventArgs e)
         {
             OnPropertyChanged(e.PropertyName);
         }
+        #endregion
 
         #region Context menu
         private void PDFView_AnnotCommandHandler(object sender, AnnotCommandArgs e)
@@ -340,15 +390,48 @@ namespace Forms
         }
         #endregion
 
+        #region Expand and collapse panel 
 
-        private void PdfViewer_InfoChanged(object sender, KeyValuePair<string, object> e)
+        private void ExpandLeftPanel(bool isExpand)
         {
-            if (e.Key == "Zoom")
+            BotaSideTool.Visibility = isExpand ? Visibility.Visible : Visibility.Collapsed;
+            Splitter.Visibility = isExpand ? Visibility.Visible : Visibility.Collapsed;
+            if (isExpand)
             {
-                CPDFSaclingControl.SetZoomTextBoxText(string.Format("{0}", (int)((double)e.Value * 100)));
+                BodyGrid.ColumnDefinitions[0].Width = new GridLength(260);
+                BodyGrid.ColumnDefinitions[1].Width = new GridLength(15);
+            }
+            else
+            {
+                BodyGrid.ColumnDefinitions[0].Width = new GridLength(0);
+                BodyGrid.ColumnDefinitions[1].Width = new GridLength(0);
             }
         }
 
+        public void ExpandRightPropertyPanel(UIElement properytPanel, Visibility visible)
+        {
+            PropertyContainer.Child = properytPanel;
+            PropertyContainer.Visibility = visible;
+        }
+        #endregion
+
+        #region UI
+
+        private void UndoButton_Click(object sender, RoutedEventArgs e)
+        {
+            if (pdfViewControl != null && pdfViewControl.PDFView != null)
+            {
+                pdfViewControl.PDFView.UndoManager?.Undo();
+            }
+        }
+
+        private void RedoButton_Click(object sender, RoutedEventArgs e)
+        {
+            if (pdfViewControl != null && pdfViewControl.PDFView != null)
+            {
+                pdfViewControl.PDFView.UndoManager?.Redo();
+            }
+        }
 
         private double CheckZoomLevel(double zoom, bool IsGrowth)
         {
@@ -379,8 +462,6 @@ namespace Forms
             return standardZoom / 100;
         }
 
-
-
         private void ToolExpand_Click(object sender, RoutedEventArgs e)
         {
             ToggleButton expandBtn = sender as ToggleButton;
@@ -398,22 +479,6 @@ namespace Forms
             BotaSideTool.SelectBotaTool(BOTATools.Search);
         }
 
-        private void ExpandLeftPanel(bool isExpand)
-        {
-            BotaSideTool.Visibility = isExpand ? Visibility.Visible : Visibility.Collapsed;
-            Splitter.Visibility = isExpand ? Visibility.Visible : Visibility.Collapsed;
-            if (isExpand)
-            {
-                BodyGrid.ColumnDefinitions[0].Width = new GridLength(260);
-                BodyGrid.ColumnDefinitions[1].Width = new GridLength(15);
-            }
-            else
-            {
-                BodyGrid.ColumnDefinitions[0].Width = new GridLength(0);
-                BodyGrid.ColumnDefinitions[1].Width = new GridLength(0);
-            }
-        }
-
         private void ViewSettingBtn_Click(object sender, RoutedEventArgs e)
         {
             ToggleButton toggleButton = sender as ToggleButton;
@@ -445,14 +510,12 @@ namespace Forms
             {
                 if (toggleButton.IsChecked == true)
                 {
-                    //if (pdfAnnotationControl != null)
-                    //{
+
                     ExpandRightPropertyPanel(fromPropertyControl, Visibility.Visible);
                     if ((bool)ViewSettingBtn.IsChecked)
                     {
                         ViewSettingBtn.IsChecked = false;
                     }
-                    //}
                 }
                 else
                 {
@@ -479,12 +542,6 @@ namespace Forms
             PopupBorder.Visibility = Visibility.Visible;
         }
 
-        public void ExpandRightPropertyPanel(UIElement properytPanel, Visibility visible)
-        {
-            PropertyContainer.Child = properytPanel;
-            PropertyContainer.Visibility = visible;
-        }
-
         private void FileInfoCloseBtn_Click(object sender, RoutedEventArgs e)
         {
             PopupBorder.Visibility = Visibility.Collapsed;
@@ -583,8 +640,9 @@ namespace Forms
                 Process.Start("explorer", "/select,\"" + openPath + "\"");
             }
         }
+        #endregion
 
-        #region Selection changed]
+        #region Selection changed
         private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
         {
             SetFromMode();
@@ -636,17 +694,7 @@ namespace Forms
 
         #endregion 
 
-        public void InitialPDFViewControl(PDFViewControl newPDFViewer)
-        {
-            PDFFormTool.InitWithPDFViewer(newPDFViewer.PDFView, fromPropertyControl);
-            fromPropertyControl.SetPDFViewer(newPDFViewer.PDFView);
-            PDFFormTool.ClearAllToolState();
-            newPDFViewer.PDFView.AnnotEditHandler += PDFView_AnnotEditHandler;
-            newPDFViewer.PDFView.AnnotActiveHandler += PDFView_AnnotActiveHandler;
-            newPDFViewer.CustomSignHandle = true;
-            newPDFViewer.PDFView.WidgetClickHandler += PDFView_WidgetClickHandler;
-        }
-
+        #region Event handle
         private void PDFView_WidgetClickHandler(object sender, WidgetArgs e)
         {
             if (e is WidgetSignArgs)
@@ -750,41 +798,9 @@ namespace Forms
                 }
             }
         }
+        #endregion
 
-        private void PDFFormTool_Loaded(object sender, RoutedEventArgs e)
-        {
-            LoadPDFFormTool = true;
-
-        }
-
-        private void PDFFormTool_Unloaded(object sender, RoutedEventArgs e)
-        {
-            LoadPDFFormTool = false;
-        }
-
-        private void SaveFile()
-        {
-            if (pdfViewControl != null && pdfViewControl.PDFView != null && pdfViewControl.PDFView.Document != null)
-            {
-                CPDFDocument pdfDoc = pdfViewControl.PDFView.Document;
-                if (pdfDoc.WriteToLoadedPath())
-                {
-                    pdfViewControl.PDFView.UndoManager.CanSave = false;
-                    return;
-                }
-
-                SaveFileDialog saveDialog = new SaveFileDialog();
-                saveDialog.Filter = "(*.pdf)|*.pdf";
-                saveDialog.DefaultExt = ".pdf";
-                saveDialog.OverwritePrompt = true;
-
-                if (saveDialog.ShowDialog() == true)
-                {
-                    pdfDoc.WriteToFilePath(saveDialog.FileName);
-                }
-            }
-        }
-
+        #region Close window
         protected override void OnClosing(CancelEventArgs e)
         {
             if (pdfViewControl.PDFView.UndoManager.CanSave)
@@ -804,21 +820,6 @@ namespace Forms
                 }
             }
         }
-
-        private void UndoButton_Click(object sender, RoutedEventArgs e)
-        {
-            if (pdfViewControl != null && pdfViewControl.PDFView != null)
-            {
-                pdfViewControl.PDFView.UndoManager?.Undo();
-            }
-        }
-
-        private void RedoButton_Click(object sender, RoutedEventArgs e)
-        {
-            if (pdfViewControl != null && pdfViewControl.PDFView != null)
-            {
-                pdfViewControl.PDFView.UndoManager?.Redo();
-            }
-        }
+        #endregion
     }
 }

+ 1 - 0
Demo/Examples/PDFViewer/MainPage.xaml.cs

@@ -1262,6 +1262,7 @@ namespace PDFViewer
         #endregion
 
         #region Change mode
+
         /// <summary>
         /// Actions performed when switching modes:
         /// Separated into actions performed upon entering and exiting the mode.

+ 1 - 21
Demo/Examples/PDFViewer/MainWindow.xaml.cs

@@ -1,33 +1,13 @@
-using ComPDFKit.PDFDocument;
-using ComPDFKit.PDFPage;
-using Compdfkit_Tools.Data;
-using Compdfkit_Tools.Edit;
-using Compdfkit_Tools.Helper;
+using Compdfkit_Tools.Helper;
 using Compdfkit_Tools.PDFControl;
-using ComPDFKitViewer;
-using ComPDFKitViewer.AnnotEvent;
-using ComPDFKitViewer.PdfViewer;
 using Dragablz;
-using Microsoft.Win32;
 using System;
-using System.Collections.Generic;
 using System.ComponentModel;
-using System.Diagnostics;
-using System.Drawing;
-using System.IO;
-using System.Linq;
 using System.Runtime.CompilerServices;
-using System.Text;
-using System.Threading.Tasks;
 using System.Windows;
 using System.Windows.Controls;
-using System.Windows.Controls.Primitives;
-using System.Windows.Data;
-using System.Windows.Documents;
 using System.Windows.Input;
 using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Shapes;
 using Path = System.IO.Path;
 
 namespace PDFViewer

+ 3 - 6
Demo/Examples/Viewer/MainWindow.xaml.cs

@@ -1,7 +1,6 @@
 using ComPDFKit.PDFDocument;
 using Compdfkit_Tools.Helper;
-using Compdfkit_Tools.PDFControl;
-using Compdfkit_Tools.PDFControlUI;
+using Compdfkit_Tools.PDFControl; 
 using ComPDFKitViewer;
 using ComPDFKitViewer.AnnotEvent;
 using ComPDFKitViewer.PdfViewer;
@@ -11,11 +10,9 @@ using System.Collections.Generic;
 using System.ComponentModel;
 using System.Diagnostics;
 using System.Drawing;
-using System.IO;
-using System.Net.NetworkInformation;
+using System.IO; 
 using System.Runtime.CompilerServices;
-using System.Windows;
-using System.Windows.Annotations;
+using System.Windows; 
 using System.Windows.Controls;
 using System.Windows.Controls.Primitives;
 using System.Windows.Input;