WPF groupbox标题裁剪字体下降

时间:2017-03-17 20:28:29

标签: c# wpf

始终裁剪WPF GroupBox标题文本字体下降。即g和p字母在底部被裁剪。有没有办法阻止这种情况发生?

        <Grid Grid.Row="1">
        <GroupBox Header="Page Setup" Margin="10,10,10,10" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            ...
        </GroupBox>
    </Grid>

结果如下: Page Setup example header text

1 个答案:

答案 0 :(得分:0)

我相信你只会在设计模式中看到这一点,如下所示:

enter image description here

一旦你运行它就没事了。

enter image description here

通常,您可以设置padding属性以移动您在GroupBox边框和标题中托管的任何元素。不幸的是,它似乎在设计模式上没有太大的区别。