Bladeren bron

综合-搜索方法调整,注释列表选中方法调整

zhuyi 1 jaar geleden
bovenliggende
commit
bceee239b7

+ 2 - 2
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationList/PDFAnnotationListControl/CPDFAnnotationListControl.xaml.cs

@@ -158,9 +158,9 @@ namespace Compdfkit_Tools.PDFControl
         private void AnnotationList_AnnotationSelectionChanged(object sender, object e)
         {
             var bindAnnotationResult = e as BindAnnotationResult;
-            pdfViewer.PDFViewTool.GetCPDFViewer().GoToPage(bindAnnotationResult.PageIndex - 1, new Point(0, 0));
+            pdfViewer.PDFViewTool.GetCPDFViewer().GoToPage(bindAnnotationResult.PageIndex, new Point(0, 0));
             pdfViewer.PDFViewTool.GetCPDFViewer().UpDataRenderFrame();
-            pdfViewer.PDFViewTool.SelectedAnnotForIndex(bindAnnotationResult.PageIndex-1, bindAnnotationResult.AnnotIndex);
+            pdfViewer.PDFViewTool.SelectedAnnotForIndex(bindAnnotationResult.PageIndex, bindAnnotationResult.AnnotIndex);
         }
     }
 }

+ 1 - 1
Demo/Examples/Compdfkit_Tools/PDFView/PDFSearch/PDFSearchControl/CPDFSearchControl.xaml.cs

@@ -171,7 +171,7 @@ namespace Compdfkit_Tools.PDFControl
             {
                 highlightItem.CreatePaintBrush(highLightBrush.Color);
                 selectList.Add(highlightItem);
-                ViewControl.PDFViewTool?.HighLightSearchText(selectList);
+                ViewControl.PDFToolManager?.HighLightSearchText(selectList);
             }
         }