WPF Textblock, linebreak in Text attribute

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

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


Or is there a

15条回答
  •  囚心锁ツ
    2021-02-03 17:07

    will not work if it is inside a collection such as Grid or StackPanel. In such cases the following would work as shown:

    LineBreak inside a collection

提交回复
热议问题