Is there a way to have \\n
make a line break in a TextBlock
?
Or is there a
If you are binding TextBlock's Text, none of the other answers work. Simply add '\n' to the binding text to where you want to break.
Try this:
<TextBlock>
line1
<LineBreak />
line2
</TextBlock>
<HyperlinkButton
Content="Apply and restart this pplication! Note that modifying these settings requires the application to be restarted." />
CRLF simple way = !
!
- Work on all wpf, xaml, silverlight controls like TextBlock, HyperlinkText and more