Line breaks in silverlight textblocks

You can use a LineBreak inside the TextBlock element, as shown here:

<TextBlock> 
    This is line 1. <LineBreak/> 
    This is line 2. 
</TextBlock>

This is equivalent to the br tag in HTML.

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.