Why does TextBlock trims ending spaces from the text?

后端 未结 5 2211
粉色の甜心
粉色の甜心 2021-02-19 01:18

Here is my TextBlocks


    

        
5条回答
  •  没有蜡笔的小新
    2021-02-19 01:36

    I've found a different solution! The \u+A0 works when you ALSO set the IsTextSelectionEnabled.

    I don't know why this would be, and it was a total surprise (I added the field because I just discovered it while also working on my 'Why does my text get trimmed in Universal Apps?' problem).

    Also U+205F (medium mathematical space) also works in conjunction with IsTextSelectionEnabled.

提交回复
热议问题