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>
posted @ 2018-07-05 10:42  dxm809  阅读(213)  评论(0编辑  收藏  举报