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

How to upload app to macOS

1. Open Terminal Press Cmd (⌘) + Space , type Terminal , and hit Enter . 2. Navigate to Your Build Output Directory Your .app file is likel...