2 次代碼提交 329757079f ... 3d03cccd40

作者 SHA1 備註 提交日期
  liyijie 3d03cccd40 Merge branch 'compdfkit_demo_win_dev' of http://git.kdan.cc:8865/Others/kmpdfkit_demo into compdfkit_demo_win_dev 3 月之前
  liyijie 3fc7b9b75c ComPDFKit.Tool(win)-补充滑动条改变事件 3 月之前

+ 1 - 1
Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.xaml

@@ -12,7 +12,7 @@
              >
     <ScrollViewer Focusable="False" CanContentScroll="True"
                   HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"
-                  MouseUp="ScrollViewer_MouseUp" MouseDown="ScrollViewer_MouseDown">
+                  MouseUp="ScrollViewer_MouseUp" MouseDown="ScrollViewer_MouseDown" ScrollChanged="ScrollViewer_ScrollChanged">
         <compdfkitviewer:CPDFViewer x:Name="PDFViewer">
 
         </compdfkitviewer:CPDFViewer>

+ 6 - 0
Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.xaml.cs

@@ -110,6 +110,7 @@ namespace ComPDFKit.Tool
         public event EventHandler<MouseEventObject> MouseLeftButtonUpHandler;
         public event EventHandler<MouseEventObject> MouseMoveHandler;
         public event EventHandler<MouseEventObject> MouseRightButtonDownHandler;
+        public event EventHandler<ScrollChangedEventArgs> ScrollChangedHandler;
         public event EventHandler DrawChanged;
         public event EventHandler DocumentModifiedChanged;
 
@@ -1075,5 +1076,10 @@ namespace ComPDFKit.Tool
         {
 
         }
+
+        private void ScrollViewer_ScrollChanged(object sender, ScrollChangedEventArgs e)
+        {
+            ScrollChangedHandler?.Invoke(this, e);
+        }
     }
 }