-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataGrid should support inertial scrolling #13502
Comments
Yes, previously there wasn't Your proposal changes make sense. Except, you can try to create a property definition with AddOwner:
|
@stogle I assigned you as you mentioned you want to contribute. If that changes, let me know. Your help is welcome ❤️ |
Thanks @timunie, I created #13511 and the checks passed but it didn't give me a link to a package I can use for testing? Edit: found the package |
Is your feature request related to a problem? Please describe.
DataGrid
does not support inertial scrolling when using touch gestures to scroll, unlike other controls that useScrollViewer
internally. This makes it harder to use on touch-enabled devices.Describe the solution you'd like
DataGrid
should have anIsScrollInertiaEnabled
property, just likeScrollViewer
does, that is true by default.Describe alternatives you've considered
I'm able to enable inertial scrolling by adding a
TemplateApplied
event handler to theDataGrid
, finding itsDataGridRowPresenter
, finding that object'sScrollGestureRecognizer
, and settingIsScrollInertiaEnabled
to true, but it is convoluted and needs to be done for everyDataGrid
in my application. Perhaps there is an easier way?Additional context
I think this can be implemented the same way it is done in ScrollViewer, by adding a property to DataGrid.cs:
then changing the Fluent and Simple templates to use it:
If this is the right approach I would be happy to submit a pull request.
The text was updated successfully, but these errors were encountered: