问题
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 ?
回答1:
Perhaps a GroupBox?
<GroupBox>
<GroupBox.Header>
<Label>Hello</Label>
</GroupBox.Header>
<TextBlock Text="World!" />
</GroupBox>
来源:https://stackoverflow.com/questions/1889979/borders-with-captions-in-wpf