Share via


Layout.SafeAreaEdges Property

Definition

Gets or sets the safe area edges to obey for this layout. The default value is SafeAreaEdges.Default (None - edge to edge).

public:
 property Microsoft::Maui::SafeAreaEdges SafeAreaEdges { Microsoft::Maui::SafeAreaEdges get(); void set(Microsoft::Maui::SafeAreaEdges value); };
public Microsoft.Maui.SafeAreaEdges SafeAreaEdges { get; set; }
member this.SafeAreaEdges : Microsoft.Maui.SafeAreaEdges with get, set
Public Property SafeAreaEdges As SafeAreaEdges

Property Value

Remarks

This property controls which edges of the layout should obey safe area insets. Use SafeAreaRegions.None for edge-to-edge content, SafeAreaRegions.All to obey all safe area insets, SafeAreaRegions.Container for content that flows under keyboard but stays out of bars/notch, or SafeAreaRegions.SoftInput for keyboard-aware behavior.

Applies to