我正在开发一个Windows Phone 7应用程序。
我想在 ListBoxItem 内垂直居中文本块。这是我的 XAML 代码:
<ListBoxItem x:Name="SingleGameItem" Height="79" Margin="10,5">
<TextBlock HorizontalAlignment="Center" Height="31" Margin="5" TextWrapping="Wrap" Text="TextBlock" VerticalAlignment="Center" Width="431" TextAlignment="Center"/>
</ListBoxItem>
我怎样才能做到这一点?