-
-
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
Added PointerPressed and PointerReleased events to DataGrid header #12595
Added PointerPressed and PointerReleased events to DataGrid header #12595
Conversation
General observation: in WPF this (and much more) can be achieved with |
@microsoft-github-policy-service agree |
@maxkatz6 do you think we may want to have a feature request for this? Would be a great addition imo. |
@timunie yeah, it can be discussed |
…om/ctacke/Avalonia into feature/grid-header-pointer-events
Head branch was pushed to by a user without write access
src/Avalonia.Controls.DataGrid/Avalonia.Controls.DataGrid.csproj
Outdated
Show resolved
Hide resolved
@dotnet-policy-service agree |
src/Avalonia.Controls.DataGrid/Avalonia.Controls.DataGrid.csproj
Outdated
Show resolved
Hide resolved
…om/ctacke/Avalonia into feature/grid-header-pointer-events
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What does the pull request do?
Adds the ability to capture pointer/mouse events at the application for the DataGrid header.
What is the current behavior?
Currently mouse events trigger sorting when sort is enabled, but do nothing when sort is disabled
What is the updated/expected behavior with this PR?
An event handler can be attached to the pointer events on a header
Example:
How was the solution implemented (if it's not obvious)?
It is obvious
Checklist
Breaking changes
No breaking changes
Obsoletions / Deprecations
No obsoletions
Fixed issues
No issue reported