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 BoxShadow style changes not triggering render updates on ContentPresenter #13932

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

Al12rs
Copy link
Contributor

@Al12rs Al12rs commented Dec 13, 2023

What does the pull request do?

Fixes #13925

What is the current behavior?

When changing the BoxShadow on a ContentPresenter (e.g. on :focus loss) the render isn't triggered, so the ContentPresenter retains the previous BoxShadow. It only updates if something else on the ContentPresenter changes that triggers the render.

What is the updated/expected behavior with this PR?

Now BoxShadow changes on ContentPresenter will correctly trigger an update of the render.

How was the solution implemented (if it's not obvious)?

Added BoxShadow to the list of properties that trigger a render update on ContentPresenter

Fixed issues

Fixes #13925

@Al12rs
Copy link
Contributor Author

Al12rs commented Dec 13, 2023

@dotnet-policy-service agree

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0042868-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@grokys grokys added this pull request to the merge queue Dec 17, 2023
Merged via the queue into AvaloniaUI:master with commit 06a3727 Dec 18, 2023
6 checks passed
@grokys grokys added bug backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Dec 18, 2023
@maxkatz6 maxkatz6 added backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Jan 17, 2024
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.

BoxShadow style doesn't trigger redraw on style change
4 participants