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

Removes MappingMode from LinearGradientBrush in HasRealizationContextChanged #10506

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dipeshmsft
Copy link
Member

@dipeshmsft dipeshmsft commented Feb 25, 2025

Fixes #10502

Description

As described in the issue description, LinearGradientBrushes ( LGB ) caches it bounds when we use Absolute MappingMode. However, when we apply transformations to the brush, the brush does not work work as expected. This PR removes the caching of the brush, thus resolving the issue.

Customer Impact

Developers using the LGB along with MappingMode=Absolute and RelativeTransform will get the correct behavior for the brush.

Regression

No

Testing

Not yet.

Risk

  • It will have a performance impact on the application using LGB with Absolute mapping mode.
  • Applications using LGB will get a different behavior now.
Microsoft Reviewers: Open in CodeFlow

@dipeshmsft dipeshmsft requested review from a team as code owners February 25, 2025 19:36
@dotnet-policy-service dotnet-policy-service bot added the PR metadata: Label to tag PRs, to facilitate with triage label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexpected behavior when using LinearGradientBrush + RelativeTransform
1 participant