WPF Textblock, linebreak in Text attribute

后端 未结 15 1434
南方客
南方客 2021-02-03 16:37

Is there a way to have \\n make a line break in a TextBlock?


Or is there a

15条回答
  •  萌比男神i
    2021-02-03 17:16

    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.

提交回复
热议问题