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

Fix SelectedValueBinding with items defined in XAML #12193

Merged
merged 2 commits into from
Jul 15, 2023

Conversation

grokys
Copy link
Member

@grokys grokys commented Jul 14, 2023

What does the pull request do?

As described in #11220, there was a problem with SelectingItemsControl.SelectedValueBinding and null values. This PR simply removes the check for a non-null value in BindingHelper.Evaluate as the binding system handles them fine.

Fixed issues

Fixes #11220

@avaloniaui-team
Copy link
Contributor

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

@grokys grokys added the bug label Jul 14, 2023
@maxkatz6 maxkatz6 added this pull request to the merge queue Jul 15, 2023
Merged via the queue into master with commit 76f4d94 Jul 15, 2023
@maxkatz6 maxkatz6 deleted the fixes/11220-selectedvaluebinding-null-item branch July 15, 2023 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot use SelectedValueBinding with items defined in XAML
3 participants