Path Shadow Not Working Consistently on Windows #8796
Labels
area-drawing
Shapes, Borders, Shadows, Graphics, BoxView, custom drawing
platform/windows 🪟
t/bug
Something isn't working
Milestone
Description
A shadow for a Path wants to square off instead of following the path. This will work properly when first setup but squares off the next time the application is launched on Windows.
What I expect to see:
Here is what I see when running the application after stopping:
Here is the XAML:
The only way to get it to work properly again is to remove the Shadow and Background lines seen highlighted above and readd them; Background first, then the Shadow.
Steps to Reproduce
Create a new .NET MAUI application
Add the XAML depicted in the following screenshot (Or some curvy path and a shadow for it):
Observe a shadow that follows the curve
Stop the program.
Run the program and observe a shadow that does not follow the curve.
<Grid.Resources> <Shadow x:Key="SharedShadow" Brush="Black" Offset="10,10" Radius="10" Opacity=".5"/> </Grid.Resources> <Path Data="m-0.8343,-0.56247l541.11421,1.57252l-0.57928,320.4051c1.61527,2.26977 -126.72043,73.10653 -233.88722,47.41002c-107.16679,-25.69651 -148.15234,-102.71863 -305.97166,-68.1379l-0.67605,-301.24974z" Opacity="1" VerticalOptions="FillAndExpand" Background="Transparent" Shadow="{StaticResource SharedShadow}" Fill="{StaticResource PrimaryButtonGradient}" Aspect="Fill"> </Path>
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
.net6.0-windows10.0.19041.0
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: