dotnet / dotnet/maui

Shadows not working on Windows

Open
#8,150 14 comments 2 reactions 1 assignee Claimed by @jsuarezruiz View on GitHub
area-drawing partner platform/windows s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

When adding a `` to a view, the shadow is not displayed when running on Windows. When running on Android, the shadow displays as expected.

I haven't been able to test macOS or iOS yet as I can't run .NET MAUI apps on iOS or macOS at all after the most recent VS 2022 for Mac (preview) update.

![image](https://user-images.githubusercontent.com/19944129/174431623-17373c49-6fa9-4e3c-a6e0-74e5a9aae759.png)
**Figure: No shadow shown in Windows**

![image](https://user-images.githubusercontent.com/19944129/174431632-c9a67d55-13df-4302-aa34-8e14101b955f.png)
**Figure: Same code running on Android has a shadow**

Here is the code used to create the above UI:

```xml










```

As a small aside, last time I was able to get this to run on macOS, the border wasn't rendered either. I'll open an issue for that too when I can get it running again.

### Steps to Reproduce

1. File new .NET MAUI app
2. Add a Shadow to a view
3. Run the app

### Version with bug

6.0.400 (current)

### Last version that worked well

Unknown/Other

### Affected platforms

Windows

### Affected platform versions

Windows SDK 10.0.19041.0

### Did you find any workaround?

No workaround at present

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