Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Borders with captions in WPF

Does anybody know how to get a border in WPF with a caption, i.e. the way web browsers display <fieldset> tags ? Is there an easy way, like setting a property, or am I going to have to make a ControlTemplate ?

like image 309
Alex Marshall Avatar asked Dec 11 '09 18:12

Alex Marshall


1 Answers

Perhaps a GroupBox?

<GroupBox>
    <GroupBox.Header>
      <Label>Hello</Label>
    </GroupBox.Header>
    <TextBlock Text="World!" />
</GroupBox>
like image 154
user7116 Avatar answered Oct 07 '22 07:10

user7116