Recently I found that uwp render TextBlock with vertically margin in default.
TextBlock
For example, I wrap a TextBlock in a Border. The red rectangle maybe the safe space redered by TextBlock.
Border
On Android, we can set
android:includeFontPadding="false"
So how to remove the red rectangle space on uwp?
Finally I worked out a solution: Set
<TextBlock LineStackingStrategy="BlockLineHeight" LineHeight="44"/>
Refer to How to remove additional padding from a WPF TextBlock?