Windows phone 8 textblock不填充手机窗口

Windows phone 8 textblock不填充手机窗口,windows-phone-8,Windows Phone 8,我有下面的代码 <!--LayoutRoot is the root grid where all page content is placed--> <Grid x:Name="LayoutRoot" Background="Transparent" Loaded="LayoutRoot_Loaded"> <Grid.RowDefinitions> <RowDefinition Height="Auto"

我有下面的代码

<!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent" Loaded="LayoutRoot_Loaded">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="70"/>
        </Grid.RowDefinitions>
        <!--TitlePanel contains the name of the application and page title-->
        <TextBlock x:Name="ApplicationTitle" FontWeight="Bold" Padding="20,0,0,0" Grid.Row="0" Text="فرآن کریم"/>


        <ListBox x:Name="myListBox" Grid.Row="1" Padding="0,0,0,0" ScrollViewer.VerticalScrollBarVisibility="Visible">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Vertical" Background="{Binding Converter={StaticResource AlternateRowConverter}}" Tap="pQuranAya_Tap">
                        <TextBlock Width="Auto" Text="{Binding Aya}" Foreground="Black" FontSize="50" Padding="20,0,0,20" TextWrapping="Wrap" Tap="TextBlock_Tap" />
                        <StackPanel Background="Black"  />
                        <TextBlock Width="Auto" Text="{Binding AyaTranslation}" Foreground="Black" FontSize="35" Padding="20,0,0,20" TextWrapping="Wrap" />
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

我希望textblock应始终为窗口大小,但其文本大小为。我怎样才能使它填满窗口的大小


谢谢,

删除
删除Padding=“20,0,0,20”和Margin(如果您在该代码中有)

谢谢您的回复,这没有帮助,我设置了listbox、stackpanel和textblock的属性,但不起作用:(将相同的属性设置为
谢谢,这也没有帮助,我不知道这会有什么问题?您是否尝试使用ListBox中的textblock执行此操作?在这种情况下,您应该将此属性添加到ListBox、StackPanel和TextBox。并删除“Auto”。我将相同的属性添加到所有控件(ListBox、grid、textblock、StackPanel),但没有帮助。谢谢,虽然我需要填充,但我删除了它,它也没有帮助。边距没有帮助(我为网格、列表框、堆栈面板和文本块设置边距)