Layout.Padding Property

Definition

Gets or sets the inner padding of the layout. The default value is a Thickness with all values set to 0.

C#
public Microsoft.Maui.Thickness Padding { get; set; }

Property Value

The Thickness values for the layout. The default value is a Thickness with all values set to 0.

Remarks

The padding is the space between the bounds of a layout and the bounding region into which its children should be arranged into.

Applies to

Product Versions
.NET MAUI 8, 9