dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.21k stars 1.75k forks source link

[Enhancement] Better SafeArea Support #2342

Open Phenek opened 3 years ago

Phenek commented 3 years ago

Summary

Hello, it would be great to have informations about Safe Area Thickness on ContentPage SafeArea is left, top, right and bottom offsets for native platforms.

Mask Group 4

API Changes

The SafeArea Thickness information for ContentPage

public Thickness SafeArea { get; }
public event EventHandler SafeAreaChanged;
   public partial class PaperPage : ContentPage
    {
        public PaperPage()
        {
            InitializeComponent(); 

            Padding = this.SafeArea;
        }
    }
}  

Intended Use Case

This should be dynamically updated when safe area change. it can be:

ghost commented 2 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

KSemenenko commented 1 year ago

This is good one

FreakyAli commented 8 months ago

+1

Redth commented 1 day ago

In general we want to provide better support for leveraging safe areas within .NET MAUI at a cross platform level. Today there is no Android support, and the iOS support is limited.