Browse Source

注释列表-修复空状态

OYXH\oyxh 2 years ago
parent
commit
80995e4ec6
1 changed files with 2 additions and 1 deletions
  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;
                 ViewContentViewModel = viewContentViewModel;
                 PdfViewer = pdfview;
                 PdfViewer = pdfview;
                 AnnotationListItems = new ObservableCollection<AnnotationHandlerEventArgs>();
                 AnnotationListItems = new ObservableCollection<AnnotationHandlerEventArgs>();
-                AnnotationListItems.CollectionChanged += AnnotationListItems_CollectionChanged;
+
                 AnnotationListItems = GetDocumentAnnotionList();
                 AnnotationListItems = GetDocumentAnnotionList();
                 currentAnnotationArgs.AddRange(AnnotationListItems);
                 currentAnnotationArgs.AddRange(AnnotationListItems);
+                AnnotationListItems.CollectionChanged += AnnotationListItems_CollectionChanged;
             }
             }
         }
         }