Wednesday, July 6, 2022

Grid in .Net MAUI

 Grid is a layout panel that consists of rows and columns. 

Example 1:

<Grid> <Grid.RowDefinitions> <RowDefinition Height="200" /> <RowDefinition Height="Auto" /> <RowDefinition Height="1*" /> <RowDefinition Height="2*" /> </Grid.RowDefinitions> ... </Grid>

This can be shortened to:

<Grid RowDefinitions="200, Auto, 1*, 2*"> ... </Grid>

Example 2:

<Grid RowDefinitions="*, *, *" ColumnDefinitions="*, *"> <BoxView Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" BackgroundColor="Navy" /> </Grid>

No comments:

Post a Comment

Cloud Service Model

Iaas: Infrastcture as s service This cloud service model is the closest to managing physical servers; a cloud provider will keep the hardwar...