Browse Source

注释-多选形状

OYXH\oyxh 1 year ago
parent
commit
f57f965f66

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

@@ -1175,13 +1175,14 @@ namespace PDF_Master.ViewModels.BOTA
                                     break;
                                 }
                             }
+
+                            await Task.Delay(5);//不加延时 每页的第一个注释不会展开
                             if (!listBox.SelectedItems.Contains(AnnotationListItems[k]))
                             {
                                 listBox.SelectedItem = AnnotationListItems[k];
                                 //PdfViewer.SelectAnnotation(args.PageIndex, args.AnnotIndex);
                             }
-
-                            await Task.Delay(5);//不加延时 每页的第一个注释不会展开
+                          
                             ExpandGroupHeader(AnnotationListItems[k], listBox);
 
                             await Task.Delay(5);//不加延时 会有不滚动的现象

+ 1 - 1
PDF Office/ViewModels/PropertyPanel/AnnotPanel/SharpsAnnotPropertyViewModel.cs

@@ -545,7 +545,7 @@ namespace PDF_Master.ViewModels.PropertyPanel.AnnotPanel
                 BasicVm.IsMultiSelected = PropertyPanel.IsMultiSelected;
                 if (BasicVm.IsMultiSelected)
                 {
-                    //BasicVm.IsSharpAnnotSelected = !BasicVm.IsMultiSelected;
+                    BasicVm.IsSharpAnnotSelected = !BasicVm.IsMultiSelected;
                     IsAttributeEquals();
                 }
                 else