Skip to content

Use event args to get value instead of field #6907

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

Merged
merged 1 commit into from
Nov 10, 2021

Conversation

YohDeadfall
Copy link
Contributor

What does the pull request do?

The more correct way to get a new property value is to use the received event args instead of a backing field. IsKeyboardFocusWithinProperty handling used the last approach previously, but now it's aligned with the rest of the code. No behavior changes.

Copy link
Collaborator

@MarchingCube MarchingCube left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This is fixing one issue in our project that requires property value to be propagated via args instead of checking field value directly.

@maxkatz6 maxkatz6 enabled auto-merge November 10, 2021 13:59
@maxkatz6 maxkatz6 merged commit bc46b55 into AvaloniaUI:master Nov 10, 2021
danwalmsley pushed a commit that referenced this pull request Nov 23, 2021
Use event args to get value instead of field
@YohDeadfall YohDeadfall deleted the use-args branch May 26, 2023 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants