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

Shadow not updated when Clipping a View with a shadow #27730

Open
jsuarezruiz opened this issue Feb 12, 2025 · 1 comment
Open

Shadow not updated when Clipping a View with a shadow #27730

jsuarezruiz opened this issue Feb 12, 2025 · 1 comment
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing platform/windows 🪟 s/triaged Issue has been reviewed t/bug Something isn't working

Comments

@jsuarezruiz
Copy link
Contributor

Description

Shadow not updated when Clipping a View with a shadow.

Image

Example:

<Border 
  x:Name="BorderShadow"
  StrokeShape="RoundRectangle 24"
  Background="Red"
  WidthRequest="100" 
  Margin="12, 0">
  <Border.Shadow>
    <Shadow
      Brush="Black"
      Offset="12, 12"
      Radius="10"
      Opacity="1"/>
  </Border.Shadow>
</Border>

Tap a Button and Clip the View:

BorderShadow.Clip = new EllipseGeometry
{
	Center = new Point(50, 50),
	RadiusX = 25,
	RadiusY = 25
};

Steps to Reproduce

Can reproduce with the ShadowFeaturePage from the TestCases.HostApp sample.

Link to public reproduction project repository

No response

Version with bug

9.0.40 SR4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@jsuarezruiz jsuarezruiz added area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing platform/windows 🪟 t/bug Something isn't working labels Feb 12, 2025
@dotnet-policy-service dotnet-policy-service bot added the s/triaged Issue has been reviewed label Feb 12, 2025
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing platform/windows 🪟 s/triaged Issue has been reviewed t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant