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