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

WPF: Don't force layout when child preferred size changes #2717

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

cwensley
Copy link
Member

Fix performance regression with Scrollable as instead of just invalidating the layout when a child preferred size changes, it also forced an update by using UpdateScrollSizes() which was introduced in #2709.

This method is only meant to be used if you need the sizes calculated immediately after. In the case where many child controls are updated, it could cause the entire scrollable layout to recalculate many times causing the performance issue.

@cwensley cwensley added this to the 2.8.4 milestone Dec 20, 2024
@cwensley cwensley merged commit 802488c into picoe:develop Dec 20, 2024
3 checks passed
@cwensley cwensley deleted the curtis/wpf-scrollable-performance branch December 20, 2024 18:21
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.

1 participant