瀏覽代碼

注释列表-修复空状态

OYXH\oyxh 2 年之前
父節點
當前提交
80995e4ec6
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      PDF Office/ViewModels/BOTA/AnnotationContentViewModel.cs

+ 2 - 1
PDF Office/ViewModels/BOTA/AnnotationContentViewModel.cs

@@ -910,9 +910,10 @@ namespace PDF_Office.ViewModels.BOTA
                 ViewContentViewModel = viewContentViewModel;
                 PdfViewer = pdfview;
                 AnnotationListItems = new ObservableCollection<AnnotationHandlerEventArgs>();
-                AnnotationListItems.CollectionChanged += AnnotationListItems_CollectionChanged;
+
                 AnnotationListItems = GetDocumentAnnotionList();
                 currentAnnotationArgs.AddRange(AnnotationListItems);
+                AnnotationListItems.CollectionChanged += AnnotationListItems_CollectionChanged;
             }
         }