2 Commits 329757079f ... 3d03cccd40

Author SHA1 Message Date
  liyijie 3d03cccd40 Merge branch 'compdfkit_demo_win_dev' of http://git.kdan.cc:8865/Others/kmpdfkit_demo into compdfkit_demo_win_dev 3 months ago
  liyijie 3fc7b9b75c ComPDFKit.Tool(win)-补充滑动条改变事件 3 months ago

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

@@ -12,7 +12,7 @@
              >
              >
     <ScrollViewer Focusable="False" CanContentScroll="True"
     <ScrollViewer Focusable="False" CanContentScroll="True"
                   HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"
                   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 x:Name="PDFViewer">
 
 
         </compdfkitviewer:CPDFViewer>
         </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> MouseLeftButtonUpHandler;
         public event EventHandler<MouseEventObject> MouseMoveHandler;
         public event EventHandler<MouseEventObject> MouseMoveHandler;
         public event EventHandler<MouseEventObject> MouseRightButtonDownHandler;
         public event EventHandler<MouseEventObject> MouseRightButtonDownHandler;
+        public event EventHandler<ScrollChangedEventArgs> ScrollChangedHandler;
         public event EventHandler DrawChanged;
         public event EventHandler DrawChanged;
         public event EventHandler DocumentModifiedChanged;
         public event EventHandler DocumentModifiedChanged;
 
 
@@ -1075,5 +1076,10 @@ namespace ComPDFKit.Tool
         {
         {
 
 
         }
         }
+
+        private void ScrollViewer_ScrollChanged(object sender, ScrollChangedEventArgs e)
+        {
+            ScrollChangedHandler?.Invoke(this, e);
+        }
     }
     }
 }
 }