WPF HeaderedContentControl两个内容属性 Header和Content
<Window x:Class="XamlTest.Window2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window2" Height="300" Width="300">
<Grid>
<GroupBox>
<GroupBox.Header>
<TextBox>wo de </TextBox>
</GroupBox.Header>
<GroupBox.Content>//可以省略
<TextBlock>hahahh</TextBlock>
</GroupBox.Content>
</GroupBox>
</Grid>
</Window>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window2" Height="300" Width="300">
<Grid>
<GroupBox>
<GroupBox.Header>
<TextBox>wo de </TextBox>
</GroupBox.Header>
<GroupBox.Content>//可以省略
<TextBlock>hahahh</TextBlock>
</GroupBox.Content>
</GroupBox>
</Grid>
</Window>