浏览代码

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

weixiangjie 7 月之前
父节点
当前提交
15dac4d08e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Demo/Examples/Compdfkit_Tools/Edit/ContentEditCOntrol/ContentEditControl.xaml.cs

+ 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);
             }