Skip to content
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

Make bindings react to PropertyChanged even if property hasn't changed #16150

Merged
merged 2 commits into from
Jun 28, 2024

Conversation

grokys
Copy link
Member

@grokys grokys commented Jun 27, 2024

What does the pull request do?

As described in #16137, in Avalonia 11.0.x (and WPF) bindings invoke the converter when they detect a PropertyChanged event even if the property didn't change. This PR simply removes the check to see if the value of an ExpressionNode has changed to reintroduce this behavior (and adds a test).

Fixed issues

Fixes #16137
#16084 is not fixed because that requires bigger changes

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0049520-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@grokys grokys marked this pull request as draft June 27, 2024 13:26
@grokys grokys marked this pull request as ready for review June 28, 2024 09:11
@maxkatz6 maxkatz6 added this pull request to the merge queue Jun 28, 2024
Merged via the queue into master with commit 6b0f09a Jun 28, 2024
12 checks passed
@maxkatz6 maxkatz6 deleted the fixes/16137-property-change-with-no-change branch June 28, 2024 12:48
grokys added a commit that referenced this pull request Jun 28, 2024
#16150)

* Added failing test for #16137.

* Raise node change even if value hasn't changed.

Fixes #16137.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants