I have a Grid View, which is used to display βtagsβ, which is a list of rows that are dynamic in size. Using the following code:
<GridView ItemsSource="{Binding Tags}" ItemTemplate="{StaticResource TagTemplate}" VerticalAlignment="Bottom" Grid.RowSpan="2" SelectionMode="None" />
I use the following template for elements:
<DataTemplate x:Name="TagTemplate"> <Border BorderBrush="Gray" BorderThickness="1" Opacity="75"> <TextBlock Text="{Binding}"/> </Border> </DataTemplate>
When added to the grid, the size of each of the elements has the same size as the first:

How to dynamically change elements in a gridview?
source share