Now with release for Xamarin.Forms 4.7 column and row definitions have been simplified.
Here is a simplified syntax sample:
Here is a simplified syntax sample:
<Grid ColumnDefinitions="1*, 2*, Auto, *, 200" RowDefinitions="1*, Auto, 35, 24, 30"> </Grid>
old fashioned code is below:
<Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*" /> <ColumnDefinition Width="2*" /> <ColumnDefinition Width="Auto" /> <ColumnDefinition Width="*" /> <ColumnDefinition Width="200" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="1*" /> <RowDefinition Height="Auto" /> <RowDefinition Height="35" /> <RowDefinition Height= "24" /> <RowDefinition Height="30" /> </Grid.RowDefinitions> </Grid>
Thanks to Xamarin team
No comments:
Post a Comment