I am new to Xamarin.Forms. Now I need to design a grid in my page and the grid is 3X2 (2 rows, 3 columns). But I need all the cells in this grid square-shaped and the width of this grid matches its parent view.
In another word, suppose the width of the screen(or the parent view of this grid) is 3, so the width of each column is 1. How can I force the Height of each row to be exactly 1 (so that each cell of the grid the height equals the width)?
Here is my design but not work:
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
</Grid>
Is there a pure XAML solution to this issue?
Thank you for any help.