Skip to content

Ensure border stroke only updates when needed#24125

Merged
jfversluis merged 1 commit intomainfrom
foda/BorderStrokeChanges
Aug 10, 2024
Merged

Ensure border stroke only updates when needed#24125
jfversluis merged 1 commit intomainfrom
foda/BorderStrokeChanges

Conversation

@Foda
Copy link
Copy Markdown
Contributor

@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
@Foda Foda requested review from jsuarezruiz and rmarinho August 9, 2024 19:31
@jfversluis jfversluis merged commit 8363dcf into main Aug 10, 2024
@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