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

If you’re using Visual Studio to build your .NET MAUI app on a Mac, locating the IPA (iOS App Package) file can be a bit tricky

  If you’re using   Visual Studio   to build your   .NET MAUI   app on a   Mac , locating the   IPA (iOS App Package)   file can be a bit tr...