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

后端 未结 3 1267
不思量自难忘°
不思量自难忘° 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:44

    set the xml:space property to preserve in your XAML, i assume you are using WPF

    
    

    EDIT: It is sometimes easier to do things in XAML. I just hope you are not using this to align your text. There are many other more elegant methods to do so.

提交回复
热议问题