Method 1:<textblock text= "first line & #x0a; second line"/>
Text in the middle plus:& #x0a;
You can do it. This method is useful and can also be used on the ToolTip:
<tooltip width= "" "content=" ' first line '
& #x0a;& #x0d; ' Second line '
& #x0a;& #x0d; ' The third line ' "/> method 2:<textblock xml:space=" preserve "> First row second row </TextBlock> Preserve can preserve whitespace in XAML method 3:< TextBlock text= "{Binding stringformat= ' first line {0} second row {0} third row ', source={x:static S:environment.newline}}"/>
<sys:string x:key= "newupdatewillshow" xml:space= "preserve" > First row & #13; second row & #13;</sys:string>
Line break for & #13;
The xml:space= "preserve" must be added, otherwise the newline character is invalid.
<sys:string x:key= "txteditortipsrc" xml:space= "preserve" > First row & #13;& #10; second row </sys:String>
Official documentation Reference: http://msdn.microsoft.com/zh-CN/library/cc189036 (vs.95). Aspx#whitespace
WPF line break