pingu2k4
pingu2k4

Reputation: 1050

How do I have a seperate padding for groupbox header and groupbox content

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...

Upvotes: 2

Views: 1911

Answers (1)

SamTh3D3v
SamTh3D3v

Reputation: 9944

here a simple example

    <GroupBox Height="100" Width="200">
        <GroupBox.Header>
            <TextBlock Text="HEADER" Margin="10"></TextBlock>
        </GroupBox.Header>
        <Rectangle Fill="Blue"></Rectangle>
    </GroupBox>

Upvotes: 4

Related Questions