10

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 ?

Alex Marshall
  • 10,162
  • 15
  • 72
  • 117

1 Answers1

24

Perhaps a GroupBox?

<GroupBox>
    <GroupBox.Header>
      <Label>Hello</Label>
    </GroupBox.Header>
    <TextBlock Text="World!" />
</GroupBox>
user7116
  • 63,008
  • 17
  • 141
  • 172