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

[WinUI] Update shadow mask as part of shadow properties #16895

Merged
merged 3 commits into from
Aug 22, 2023

Conversation

emaf
Copy link
Contributor

@emaf emaf commented Aug 21, 2023

Description of Change

The shadow mask needs to be updaded with the shadow properties, because if the size or shape of the object changed the mask needs to be updated accordingly.

This fixes a regression, but brings back another problem: shadows won't work for borders with no content (#13944). The workaround for that scenario is to add content or a background color to the border.

Issues Fixed

Fixes #16094

The shadow mask needs to be updaded with the shadow properties, because if the size or shape of the object changed the mask needs to be updated accordingly.

This fixes a regression, but brings back another problem: shadows won't work for borders with no content (#13944). The workaround for that scenario is to add content or a background color to the border.

Fixes #16094
@emaf emaf requested a review from a team as a code owner August 21, 2023 16:29
BretJohnson
BretJohnson previously approved these changes Aug 21, 2023
Copy link
Member

@BretJohnson BretJohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beyond the XAML spaces/tabs, this LGTM.

@samhouts samhouts added this to the .NET 8 GA milestone Aug 21, 2023
Copy link
Member

@PureWeen PureWeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

One issue I noticed is that the shadow below this circle doesn't seem correct

image

{
if (HasShadow)
UpdateShadow();
UpdateShadowAsync().FireAndForget(IPlatformApplication.Current?.Services?.CreateLogger(nameof(WrapperView)));

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks somewhat hard to read. Can this be put on multiple lines?

@PureWeen
Copy link
Member

#16895 (review) isn't a regression caused by this PR

@PureWeen PureWeen merged commit 3f41775 into main Aug 22, 2023
34 checks passed
@PureWeen PureWeen deleted the dev/ema/fix-shadows branch August 22, 2023 14:51
@emaf
Copy link
Contributor Author

emaf commented Aug 22, 2023

#16895 (review) isn't a regression caused by this PR

Open a separte issue for the clipped images problem: #16922

@github-actions github-actions bot locked and limited conversation to collaborators Dec 7, 2023
@samhouts samhouts added the fixed-in-8.0.0-rc.1.9171 Look for this fix in 8.0.0-rc.1.9171 label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-in-8.0.0-rc.1.9171 Look for this fix in 8.0.0-rc.1.9171
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[regression/8.0.0-preview.5.8529] - WinUI shadows are broken
6 participants