2 Revize 42ebfdb852 ... 02e185daa3

Autor SHA1 Zpráva Datum
  sunhaonan 02e185daa3 bug - 添加Freetext注释,字体只会显示Times před 1 rokem
  sunhaonan 63a2388c75 bug - 切换功能时图章不会取消 před 1 rokem

+ 3 - 2
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationControl/CPDFAnnotationControl.xaml.cs

@@ -75,7 +75,8 @@ namespace Compdfkit_Tools.PDFControl
         {
             if (this.pdfViewerControl != null)
             {
-                pdfViewerControl.PDFToolManager.MouseLeftButtonDownHandler += PDFToolManager_MouseLeftButtonDownHandler; ;
+                pdfViewerControl.PDFToolManager.MouseLeftButtonDownHandler -= PDFToolManager_MouseLeftButtonDownHandler;
+                pdfViewerControl.PDFToolManager.MouseLeftButtonDownHandler += PDFToolManager_MouseLeftButtonDownHandler;
                 //this.pdfViewerControl.AnnotActiveHandler += PDFViewer_AnnotActiveHandler;
                 //this.pdfViewerControl.AnnotEditHandler -= PdfViewer_AnnotEditHandler;
                 //this.pdfViewerControl.AnnotEditHandler += PdfViewer_AnnotEditHandler;
@@ -126,7 +127,7 @@ namespace Compdfkit_Tools.PDFControl
             if (this.pdfViewerControl != null)
             {
                 //this.pdfViewerControl.AnnotActiveHandler -= PDFViewer_AnnotActiveHandler;
-
+                pdfViewerControl.PDFToolManager.MouseLeftButtonDownHandler -= PDFToolManager_MouseLeftButtonDownHandler;
             }
         }
 

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

@@ -20,11 +20,11 @@ namespace Compdfkit_Tools.Common
             get => FontFamilyComboBox.SelectedItem.ToString();
             set
             {
-                if (value == "Courier New")
+                if (value == "Courier")
                 {
                     FontFamilyComboBox.SelectedIndex = 0;
                 }
-                else if (value == "Arial")
+                else if (value == "Helvetica")
                 {
                     FontFamilyComboBox.SelectedIndex = 1;
 

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

@@ -326,11 +326,13 @@ namespace PDFViewer
             {
                 annotationControl.UnloadEvent();
                 annotationControl.ClearViewerControl();
+                viewControl.PDFViewTool.GetCPDFViewer().SetIsShowStampMouse(false);
             }
             else if (currentMode == "Form")
             {
                 formControl.UnloadEvent();
                 formControl.ClearViewerControl();
+                viewControl.PDFViewTool.GetCPDFViewer().SetIsShowStampMouse(false);
             }
             else if (currentMode == "Content Editor")
             {