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

Ensure border stroke only updates when needed #24125

Merged
merged 1 commit into from
Aug 10, 2024

Conversation

Foda
Copy link
Member

@Foda Foda commented Aug 9, 2024

Ensure border stroke does not regenerate on Parent or Window property changes.

Description of Change

Don't raise a property changed event for StrokeShape in the Border object when the StrokeShape.Window or StrokeShape.Parent property change. These properties are modified when the Border is added/removed from the visual tree and can cause significant performance issues for lists when they're unloaded.

Using the sample on the linked issue:
image

Issues Fixed

Fixes #24123
Fixes #23992

@Foda Foda added the area-controls-border Border label Aug 9, 2024
@Foda Foda requested a review from a team as a code owner August 9, 2024 19:31
@jfversluis jfversluis merged commit 8363dcf into main Aug 10, 2024
97 checks passed
@jfversluis jfversluis deleted the foda/BorderStrokeChanges branch August 10, 2024 13:47
@samhouts samhouts added the fixed-in-net8.0-nightly This may be available in a nightly release! label Aug 12, 2024
@samhouts samhouts added the fixed-in-net9.0-nightly This may be available in a nightly release! label Aug 27, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-border Border fixed-in-net8.0-nightly This may be available in a nightly release! fixed-in-net9.0-nightly This may be available in a nightly release!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Border updates stroke too frequently CollectionView rendering hangs the apps
4 participants