WPF XAML TextBlock将内容发送到新行

Ita*_*dev 3 c# xaml textblock line new-operator

我有一个TextBlock,就像这样:

<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
    <TextBlock Name="PatchNotesTxt" Width="291" Height="226" Style="{StaticResource PatchNotes}">
        Test Test Test Test Test Test Test Test Test Test Test Test Test Test TEST
    </TextBlock>
</ScrollViewer>
Run Code Online (Sandbox Code Playgroud)

但问题是,当内容到达TextBlock的末尾时,它不会转移到新行.我该怎么做到这一点?

Lou*_*ann 11

TextWrapping文本框的属性设置为Wrap