dotnet / dotnet/maui

Path Shadow Not Working Consistently on Windows

Open
#8,796 4 comments 0 reactions 1 assignee Assigned to @jsuarezruiz View on GitHub
area-drawing delighter migration-compatibility platform/windows t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### 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:
![Good](https://user-images.githubusercontent.com/4754211/179435026-fd42c4a0-059f-4067-9c56-87d250788942.png)

Here is what I see when running the application after stopping:
![Bad](https://user-images.githubusercontent.com/4754211/179435062-9bb7dfbb-6e3d-4fbf-a274-adc5a4eb3a1c.png)

Here is the XAML:
![XAML](https://user-images.githubusercontent.com/4754211/179435073-3bfc1fc3-4142-48e8-82dc-d281ebd8b85d.png)

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):
![XAML](https://user-images.githubusercontent.com/4754211/179435308-372d8903-5277-444b-92c2-9734026c67d4.png)

- Observe a shadow that follows the curve
- Stop the program.
- Run the program and observe a shadow that does not follow the curve.

`



`

### 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.