dotnet / dotnet/maui

SafeAreaEdges.Container is not accessible

Open
#35,501 2 comments 0 reactions 0 assignees View on GitHub
area-layout area-safearea platform/android platform/ios platform/macos platform/windows s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 10h
Merged PRs (30d)
297

Description

### Description

Looking at [Safe Area documentation](https://learn.microsoft.com/en-us/dotnet/maui/user-interface/safe-area?view=net-maui-10.0) to migrate an app to .NET 10, I notice that SafeAreaEdges.Container is hinted as "equivalent behavior" as .NET 9, so it looked good to me.

Image

However it's not accessible at all from code-behind.

Image

### Steps to Reproduce

N/A

### Link to public reproduction project repository

_No response_

### Version with bug

10.0.60

### Is this a regression from previous behavior?

No, this is something new

### Last version that worked well

_No response_

### Affected platforms

iOS, Android, Windows, macOS

### Affected platform versions

_No response_

### Did you find any workaround?

_No response_

### Relevant log output

```shell

```

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.