2017-03-17 15 views
1

WPF GroupBox標題文字字體下拉框始終被剪裁。即g和p字母在底部被裁剪。有沒有辦法阻止這種情況發生?WPF groupbox標題作物字體下拉框

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

結果看起來是這樣的: Page Setup example header text

回答

0

我相信,你只會看到這個設計模式就像這裏:

enter image description here

一旦你運行它,它會沒事的。

enter image description here

通常可以設置padding屬性來打動你正在主持的任何元素從GroupBox邊框和標題了。不幸的是,它在設計模式中似乎沒有太大的區別。