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 TreeDataGridPresenterBase Replace Regression #266

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xLEGiON
Copy link

@xLEGiON xLEGiON commented Feb 26, 2024

This fixes #265. The more efficient use of ItemsReplaced is kept when the old and new items have the same length. Otherwise, the previous behavior is used.

Note that AvaloniaUI/Avalonia#13795 made the same change to VirtualizingStackPanel that was made to TreeDataGridPresenterBase which caused the issue. I haven't used the VirtualizingStackPanel before, so I can't test if it has the same issue.

@xLEGiON
Copy link
Author

xLEGiON commented Dec 16, 2024

I've updated this to resolve conflicts. I've also added a minimal reproducible example to #265. If anyone gets time to take a look, it would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TreeDataGridPresenterBase Replace Regression
1 participant