Ver Fonte

ComPDFKit(win) - 内容编辑无法保存问题

weixiangjie há 7 meses atrás
pai
commit
15dac4d08e

+ 1 - 1
Demo/Examples/Compdfkit_Tools/Edit/ContentEditCOntrol/ContentEditControl.xaml.cs

@@ -604,7 +604,7 @@ namespace Compdfkit_Tools.PDFControl
         public void UndoManager_PropertyChanged(object sender, PropertyChangedEventArgs e)
         {
             OnPropertyChanged(e.PropertyName);
-            if (e.PropertyName == "CanSave")
+            if (e.PropertyName == "CanUndo" || e.PropertyName == "CanRedo")
             {
                 OnCanSaveChanged?.Invoke(this, CanSave);
             }