Sfoglia il codice sorgente

compdfkit win - 修复分屏模式下选择框问题,添加设置步距

liuaoran 7 mesi fa
parent
commit
85dda4e1cf

+ 2 - 0
Demo/Examples/Compdfkit_Tools/PDFView/PDFViewControl/PDFViewControl.xaml.cs

@@ -595,9 +595,11 @@ namespace Compdfkit_Tools.PDFControl
             {
                 case "ViewerTool":
                     FocusPDFViewTool = viewerTool;
+                    splitToolManager.ClearSelect();
                     break;
                 case "SplitViewerTool":
                     FocusPDFViewTool = splitViewerTool;
+                    toolManager.ClearSelect();
                     break;
             }
             if (FocusPDFViewTool.IsLoaded && FocusPDFViewTool.GetCPDFViewer()?.CurrentRenderFrame != null)

+ 1 - 0
Demo/Examples/PDFViewer/MainPage.xaml.cs

@@ -199,6 +199,7 @@ namespace PDFViewer
 
                 pdfviewer.SetLinkHighlight(Properties.Settings.Default.IsHighlightLinkArea);
                 pdfviewer.SetFormFieldHighlight(Properties.Settings.Default.IsHighlightFormArea);
+                pdfviewer.ScrollStride = Properties.Settings.Default.Divisor;
             }
         }