MAUI is not correctly drawing or updating shadows causing bizarre outcomes in numerous situations in Windows (simple repro project included) #17996
Labels
area-drawing
Shapes, Borders, Shadows, Graphics, BoxView, custom drawing
platform/windows 🪟
s/triaged
Issue has been reviewed
t/bug
Something isn't working
Description
If you make a RoundRectangle Border and then apply a Shadow to it, it will draw the Shadow as a square even if you have it set to draw a RoundRectangle shape.
For example, here is a simple configuration in Android rendering the shadow shape correctly:
Here is the same configuration in Windows:
It is drawing an abnormal square shadow which is obviously not the intended design.
I think this is more an issue of it not drawing correctly on the update of the Border shape. Ie. It is not refreshing the Shadow. I have seen it draw Shadows properly on rounded Borders in WIndows under other circumstances.
Severity of Issue
There are many bizarre behaviors being exhibited by Windows shadows in MAUI. I have another situation where my entire screen is covered by a shadow from a small element at the top. It is stretching them bizarrely. Sometimes they are in the wrong place on screen. Or the wrong shape as here.
I presume this is all the same bug, where I presume it is just not updating the shadow when it ought to. So I am only providing one repro. If needed, I can provide numerous others.
Windows shadows are mostly unusable at this point.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/jonmdev/Windows-Shadow-Mask-Bug
Version with bug
7.0.96
Is this a regression from previous behavior?
No, this is something new
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 10
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: