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>