I have a ListView with HasUnevenRows set to "true". Within the ListView.ItemTemplate I have a grid for which I'd like to dynamically set the ColumnDefinition Width to the Height of the ListView item. The end goal is to get a grid cell that is a perfect square regardless of Platform and ListView row content.
Is there a way for me to get the current value of the ListView item's row and set it in the ColumnDefinition in the ListView.ItemTemplate? Is this something I can do without the use of a custom renderer?
Here's a mock-up XAML representing what I'd like to achieve:
<ListView HasUnevenRows="True">
<ListView.ItemTemplate>
<DataTemplate>
<ViewCell>
<Grid>
<Grid.ColumnDefinitions Width=" LISTVIEW ITEM ROW HEIGHT "/>
<Grid.ColumnDefinitions Width="*"/>
</Grid>
</ViewCell>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>