Windows phone 7 文本块对齐被破坏,如何对齐文本?

Windows phone 7 文本块对齐被破坏,如何对齐文本?,windows-phone-7,xaml,windows-phone-8,Windows Phone 7,Xaml,Windows Phone 8,我有一个文本,我希望它是合理的 在这样的文本块中: <TextBlock Width="Auto" TextAlignment="Justify"/> 它说它不受支持 如何在文本块或其他控件中对齐文本?您可以使用RichTextBox控件解决此问题: <RichTextBox TextAlignment="Justify" IsReadOnly="True"> <Paragraph> Put your text here

我有一个文本,我希望它是合理的

在这样的文本块中:

<TextBlock Width="Auto" TextAlignment="Justify"/>

它说它不受支持


如何在文本块或其他控件中对齐文本?

您可以使用RichTextBox控件解决此问题:

<RichTextBox TextAlignment="Justify" IsReadOnly="True">
    <Paragraph>
        Put your text here
    </Paragraph>
</RichTextBox>

把你的文字放在这里

您可以使用RichTextBox控件解决此问题:

<RichTextBox TextAlignment="Justify" IsReadOnly="True">
    <Paragraph>
        Put your text here
    </Paragraph>
</RichTextBox>

把你的文字放在这里

我的应用程序适用于WP8,我认为它不存在,是吗?是的,它存在,将答案中的代码添加到.xaml文件中。我的应用程序适用于WP8,我认为它不存在,是吗?是的,它存在,将答案中的代码添加到.xaml文件中。