ItemsView Horizontal Scrolling with Mouse Scroll Wheel #8957
Unanswered
DominicMaas
asked this question in
Q&A
Replies: 2 comments 4 replies
-
I should note that I'm running this code in the |
Beta Was this translation helpful? Give feedback.
2 replies
-
You can simply do this: // Register event after checking ScrollView is not null
ItemsView.ScrollView.PointerWheelChanged += ScrollView_PointerWheelChanged;
private static void ScrollView_PointerWheelChanged(object sender, PointerRoutedEventArgs e)
{
if (sender is ScrollView { ComputedVerticalScrollMode: ScrollingScrollMode.Disabled, ComputedHorizontalScrollMode: ScrollingScrollMode.Enabled } scrollView)
_ = scrollView.AddScrollVelocity(new(e.GetCurrentPoint(scrollView).Properties.MouseWheelDelta / -2.5f, 0), null);
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is this supported?
I've tried messing around with the base
ScrollView
, but no luck so far:Beta Was this translation helpful? Give feedback.
All reactions