in WPF you can use the value " " or "
"
For example:
<b><label Content="Lorem ipsum" /></b>
("10" is the ASCII number for newline)
or
<b><label Content="Lorem
ipsum" /></b>
("A" is the ASCII number for newline in hex)
Method 2:
<Label><TextBlock>Lorem<LineBreak/>ipsum</TextBlock></Label>
Reference:
http://stackoverflow.com/questions/483802/newline-in-a-wpf-label
No comments:
Post a Comment