0
votes

I have the following GroupBox whose text sits on the border of the control. Currently, half of the text is inside and half is outside the control.

How can I move it to sit completely inside the control?

<GroupBox Grid.Row="2" Background="LightSteelBlue">
    <GroupBox.Header>
        <Label FontSize="15" 
            VerticalAlignment="Bottom" 
            FontFamily="Calibri" 
            FontWeight="ExtraBold">Traceability Data</Label>
    </GroupBox.Header>
</GroupBox>
1

1 Answers

0
votes

Add a margin or padding to your label like this:

<GroupBox Grid.Row="2" Background="LightSteelBlue" Margin="0,-20,0,0" >
      <GroupBox.Header>
           <Label FontSize="15" VerticalAlignment="Bottom" FontFamily="Calibri" Padding="0,20,0,0" FontWeight="ExtraBold">Traceability Data</Label>
      </GroupBox.Header>
</GroupBox>

Padding seems to give a better results.