How to preserve white-spaces of TextBlock in UWP apps
问题 If you simply set the value of Text property in a TextBlock as " Example " (Note that there 3 whitespaces at the end of this string),what TextBlock shows in UI is just " Example ". And after searching for solutions on the Internet, I found that there is a way to solve this issue: <Border BorderThickness="1" BorderBrush="#FFFF0202" HorizontalAlignment="Center" VerticalAlignment="Center"> <TextBlock x:Name="t1"> <Run Text="Example "/> </TextBlock> </Border> The above code shows the use of