Sfoglia il codice sorgente

其他-升级岛1.11版本demo,合并最新.net Core代码,部分遗漏调整

zhuyi 11 mesi fa
parent
commit
c2c5714fc1

+ 2 - 2
Demo/Examples/Compdfkit_Tools/DigitalSignature/FillDigitalSignatureControl/FillDigitalSignatureControl.xaml.cs

@@ -122,7 +122,7 @@ namespace Compdfkit_Tools.PDFControl
             tempSignatureConfig.Content = Text;
             tempSignatureConfig.TextColor = textColor;
             tempSignatureConfig.ContentColor = new float[] { 0, 0, 0 };
-            signatureWidget.UpdateApWithSignature(tempSignatureConfig);
+            signatureWidget.UpdataApWithSignature(tempSignatureConfig);
 
             byte[] signatureBitmapBytes = GetTempSignatureImage(signatureWidget, out int width, out int height);
 
@@ -577,7 +577,7 @@ namespace Compdfkit_Tools.PDFControl
                 location = string.Empty;
             }
 
-            signatureWidget.UpdateApWithSignature(tempSignatureConfig);
+            signatureWidget.UpdataApWithSignature(tempSignatureConfig);
 
             if (Document.WriteSignatureToFilePath(signatureWidget, filePath, SignaturePath, Password, location, reason, CPDFSignaturePermissions.CPDFSignaturePermissionsNone))
             {

+ 4 - 1
Demo/Examples/Compdfkit_Tools/PDFView/PDFViewControl/PDFViewControl.xaml.cs

@@ -386,7 +386,10 @@ namespace Compdfkit_Tools.PDFControl
                     FocusPDFViewTool = splitViewerTool;
                     break;
             }
-            FocusPDFViewToolChanged?.Invoke(this, EventArgs.Empty);
+            if (FocusPDFViewTool.IsLoaded)
+            {
+                FocusPDFViewToolChanged?.Invoke(this, EventArgs.Empty);
+            }
         }
 
         #region Private Command Methods