You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone.
I've been searching for a solution in many places, but I've hit a wall and I'm seeking help here.
Is it possible to block scrolling in a ScrollViewer so that it is only available when using the scrollbars, and not when touching inside the ScrollViewer grid? Below is a code snippet to illustrate exactly what I mean. The ScrollViewer contains a grid that has an event attached to draw elements, and when its content is scaled, the scrollbars are displayed. The problem is that I am unable to draw elements due to attempts to scroll through the ScrollViewer when using touch input. When using a mouse, the elements are drawn, and the scroll event does not trigger. Is it possible to achieve this effect with touch input? It's crucial for the functionality of the application.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone.
I've been searching for a solution in many places, but I've hit a wall and I'm seeking help here.
Is it possible to block scrolling in a ScrollViewer so that it is only available when using the scrollbars, and not when touching inside the ScrollViewer grid? Below is a code snippet to illustrate exactly what I mean. The ScrollViewer contains a grid that has an event attached to draw elements, and when its content is scaled, the scrollbars are displayed. The problem is that I am unable to draw elements due to attempts to scroll through the ScrollViewer when using touch input. When using a mouse, the elements are drawn, and the scroll event does not trigger. Is it possible to achieve this effect with touch input? It's crucial for the functionality of the application.
Beta Was this translation helpful? Give feedback.
All reactions