Browse Source

其他-注释列表点击选中

zhuyi 1 year ago
parent
commit
b9ddb99ef8

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

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