2

I have a groupbox, but I want to had a padding of 5 all around the header, but no margin around the content.

How would I best go about this? I can't seem to find a way to seperate the padding values from each other...

pingu2k4
  • 956
  • 2
  • 15
  • 31

1 Answers1

4

here a simple example

    <GroupBox Height="100" Width="200">
        <GroupBox.Header>
            <TextBlock Text="HEADER" Margin="10"></TextBlock>
        </GroupBox.Header>
        <Rectangle Fill="Blue"></Rectangle>
    </GroupBox>
SamTh3D3v
  • 9,854
  • 3
  • 31
  • 47