Esempio n. 1
0
 private void LeftScroller_ViewChanged(object sender, ScrollViewerViewChangedEventArgs e)
 {
     if (!e.IsIntermediate)
     {
         _state = 0;
         return;
     }
     if (_state != 1)
     {
         RightScroller.ChangeView(null, LeftScroller.VerticalOffset, null, true);
         _state = 2;
     }
 }
Esempio n. 2
0
        // Ctrl + Shift + Wheel -> horizontal scrolling
        private void ChangeHorizontalScrollingBasedOnMouseInput(PointerRoutedEventArgs args)
        {
            var mouseWheelDelta = args.GetCurrentPoint(this).Properties.MouseWheelDelta;

            RightScroller.ChangeView(RightScroller.HorizontalOffset + (-1 * mouseWheelDelta), null, null, false);
        }