Shadows not drawing/updating correctly in Windows & cover entire screen (okay in Android/iOS) #18172
Labels
area-drawing
Shapes, Borders, Shadows, Graphics, BoxView, custom drawing
platform/windows 🪟
t/bug
Something isn't working
Milestone
Description
Windows has had some abnormal Shadow behavior which continues into the most recent .NET 8 version 8.0.0-rc.2.23479.6.
I posted a prior example but that code no longer repros in this version so I updated the code (prior here: #17996).
This bug is making Shadows unusable in Windows. Shadows cover the entire screen in certain circumstances in Windows.
CORRECT BEHAVIOR
Here is what the current project should look like as shown in Android:
ABNORMAL BEHAVIOR
Here is what it looks like in Windows:
Steps to Reproduce
Play repro project in Windows vs. Android. See in Windows the Shadow abnormally covers the entire screen.
All custom repro project code is in App.xaml.cs (109 lines total in this document to repro). Otherwise, the project is a default Maui project.
Link to public reproduction project repository
https://github.com/jonmdev/Windows-Shadow-Mask-Bug
Version with bug
7.0.96
8.0.0-rc.2.23479.6
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
None. Present in .NET 7 & .NET 8.
Affected platforms
Windows
The text was updated successfully, but these errors were encountered: