How to represent Line Break or new line in silverlight textBox

后端 未结 7 1221
逝去的感伤
逝去的感伤 2021-02-01 19:12

I am having hard time to match Special characters set in Silverlight. I only on the following:

To represent a LineBreak in Silverlight TextBlock:

use : > line

7条回答
  •  执念已碎
    2021-02-01 19:50

    If you want to display a string with a carriage return in it, just use a string with a carriage return in it:

    MyTextBlock.Text = @"line 1
    line2";
    

提交回复
热议问题