Skip to content

Fix ItemsControl logical child removal #13019

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 2 commits into from
Sep 25, 2023

Conversation

grokys
Copy link
Member

@grokys grokys commented Sep 25, 2023

What does the pull request do?

In a non-virtualizing itemsControl, control items were not being removed from the LogicalChildren collection: only items that are not their own container were being removed. This was incorrect.

Add a unit test and fix this. Thanks to @jankrib for reporting this with a unit test and fix.

grokys and others added 2 commits September 25, 2023 22:30
And one passing test to confirm that it works when virtualization is enabled.

Co-Authored-By: Jan Kristian Bjerke <[email protected]>
Fixes test in previous commit.

Co-Authored-By: Jan Kristian Bjerke <[email protected]>
@avaloniaui-team
Copy link
Contributor

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

@maxkatz6 maxkatz6 merged commit b2f2c49 into master Sep 25, 2023
@maxkatz6 maxkatz6 deleted the fixes/itemscontrol-logical-child-removal branch September 25, 2023 23:20
@grokys grokys added the backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch label Sep 29, 2023
grokys pushed a commit that referenced this pull request Oct 2, 2023
…child-removal

Fix ItemsControl logical child removal
@grokys grokys added backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Oct 14, 2023
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.

3 participants