I've searched a lot for an answer and couldn't find one.
So: I'm making a Windows Phone app (targeting 7.1) and I have a ListBox with the following ItemTemplate
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<TextBlock x:Name="subjectName" Text="{Binding Path=name}" TextWrapping="Wrap" Foreground="White" FontSize="30" FontFamily="Segoe WP Semibold" Width="440" Height="99"/>
<TextBlock x:Name="subjectCode" Text="{Binding Path=code}" FontSize="25" Width="107" HorizontalAlignment="Right" Margin="0,79,0,-12"/>
<TextBlock x:Name="totalAbsences" Text="{Binding Path=absences}" FontSize="30" Width="107" HorizontalAlignment="Left" Margin="0,119,0,-65"/>
<TextBlock x:Name="totalGrade" Text="{Binding Path=grades}" FontSize="30" Width="186" HorizontalAlignment="Right" Margin="0,119,0,-62" TextAlignment="Right"/>
<Rectangle Fill="White" Height="3" Margin="0,0,0,-233" />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
And this is what happens:
http://d.pr/i/liBK (can't post images here yet)
So what can be done so that the item's height is adjusted automatically?