WPF TextBlock 调整下划线与文字的距离
<TextBlock Foreground="#ff8a00" FontWeight="Bold" Width="100" TextWrapping="Wrap" Text="PRO Software Version" FontSize="12" Padding="5"> <TextBlock.TextDecorations> <TextDecorationCollection> <!--<TextDecoration PenThicknessUnit="Pixel"/>--> <TextDecoration PenOffset="3"/> </TextDecorationCollection> </TextBlock.TextDecorations> </TextBlock>
通过 PenOffset 属性调整下划线与文字的距离