Text="Some text:"
我想在冒号后添加一个空格。
我试过 xml:space="preserve"
和  
但似乎都不起作用。
我知道可以通过添加边距来完成,但我很好奇是否还有其他方法。
最佳答案
试试这个,它对我有用。
<RelativePanel>
<TextBlock x:Name="test1" RelativePanel.Below="edLongitude">
ahoj  
</TextBlock>
<TextBlock x:Name="test2" RelativePanel.Below="edLongitude" RelativePanel.RightOf="test1" Text="nazdar" />
</RelativePanel>
关于xaml - 如何在 XAML 中的 TextBlock 末尾添加空格? (Windows 10,UWP),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32144667/