私は答えをたくさん探しましたが、見つけることができませんでした。
だから:私はWindows Phoneアプリ(7.1をターゲット)を作成しており、次のItemTemplateを持つListBoxを持っています
<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>
そして、これが起こります:
http://d.pr/i/liBK (ここにはまだ画像を投稿できません)
アイテムの高さが自動的に調整されるようにするにはどうすればよいでしょうか。