Layout Options
Learn about the different layout options available in .NET MAUI.
1.
Understanding Layout Options

Layout options control how your UI elements are arranged within a layout container. .NET MAUI provides several layout options to help you create responsive and adaptable UIs.

2.
Common Layout Options
Absolute
Specifies the position of a child layout container within its parent layout container.
Absolute Layout Example
Fill
The child layout container fills the available space in its parent layout container.
Fill Layout Example
Flexible
The child layout container attempts to fill the available space in its parent layout container, but maintains its aspect ratio.
Flexible Layout Example
Wrap
Children layout containers are placed on consecutive lines within the layout container.
Wrap Layout Example
Start/End
Children layout containers are placed at the start or end of their parent layout container.
Start/End Layout Example
3.
Choosing the Right Layout Option

Select the layout option that best suits the specific layout requirements of your UI. Consider factors such as responsiveness, element sizing, and the desired visual effect.