WPF Textblock, linebreak in Text attribute

后端 未结 15 1204
南方客
南方客 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:01

    just use the AccessText control. you can use it like a label and you have the property TextWrapping="WrapWithOverflow"

    eg.

    Mine is like that and it's working fine. Also, you don't have any problems on changing the text dinamically.

提交回复
热议问题