GroupBox Header with mixed content : GroupBox « Windows Presentation Foundation « C# / CSharp Tutorial






<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      HorizontalAlignment="Center" VerticalAlignment="Center">
<GroupBox>
  <GroupBox.Header>
    <StackPanel Orientation="Horizontal">
      <TextBlock Text="A" FontStyle="Italic" VerticalAlignment="Center" />
      <TextBlock Text="B" VerticalAlignment="Center" />
      <Ellipse Fill="Red" Width="20" Height="60" />
      <TextBlock Text="C" VerticalAlignment="Center" FontWeight="Bold" />
      <Button Content="_header" VerticalAlignment="Center" />
    </StackPanel>
  </GroupBox.Header>
  <TextBlock Text="Boring content" />
</GroupBox>
</Page>
WPF Header With Mixed Content








24.54.GroupBox
24.54.1.GroupBox DemoGroupBox Demo
24.54.2.GroupBox Header with mixed contentGroupBox Header with mixed content
24.54.3.Adding GroupBox to Window