Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

How to: Customize style of LayoutGroup's header

The following example shows how to customize the style of a LayoutGroup‘s header via the LayoutGroup.GroupBoxStyle property. In the example, the title is painted in blue over a light yellow background.

The following image shows the result:

GroupBoxStyle

<lc:LayoutGroup x:Name="myLayoutGroup" Orientation="Vertical" View="GroupBox" Header="Group 1" >
    <lc:LayoutGroup.GroupBoxStyle>
        <Style TargetType="lc:GroupBox">
            <Setter Property="TitleBackground" Value="LightYellow"/>
            <Setter Property="Foreground" Value="Blue"/>
        </Style>
    </lc:LayoutGroup.GroupBoxStyle>
...