I have a TextBlock, like this one:
<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>
But the problem is that when the content reaches the end of the TextBlock it isn't transfered to a new line. How am I supposed to achieve that?
Set the TextWrapping
property of the textbox to Wrap
Use the TextWrapping property on the TextBlock.
<TextBlock TextWrapping="Wrap"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With