Set TextBlock to preserve white space at the beginning and at the end?

后端 未结 3 1268
不思量自难忘°
不思量自难忘° 2021-02-05 05:45

EDIT:

The code below actually works as I want - this question a little misleading. Please ignore it.


Normally when I set Text property of <

3条回答
  •  爱一瞬间的悲伤
    2021-02-05 06:27

    In this case you don't need to use xml:space="preserve"

    
    

    WILL display the whitespaces, however

        Hello world!    
    

    won't.

提交回复
热议问题