Skip to main content

HeaderedItemsContainer.HeaderStyle Property

Gets or sets the style applied to the container’s header.

Namespace: DevExpress.UI.Xaml.Layout

Assembly: DevExpress.UI.Xaml.Layout.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

#Declaration

public Style HeaderStyle { get; set; }

#Property Value

Type Description
Style

The style applied to the container’s header.

#Remarks

Control The type for which the style is intended (TargetType)
LayoutControl LayoutControlHeader
LayoutGroup LayoutGroupHeader

The following code changes the font attributes of a LayoutGroup‘s header:

xmlns:Layout="using:DevExpress.UI.Xaml.Layout"
xmlns:dxEditors="using:DevExpress.UI.Xaml.Editors"

<Layout:LayoutGroup Header="Details">
    <Layout:LayoutGroup.HeaderStyle>
        <Style TargetType="Layout:LayoutGroupHeader">
            <Setter Property="Foreground" Value="Red"/>
            <Setter Property="FontSize" Value="32"/>
        </Style>
    </Layout:LayoutGroup.HeaderStyle>
    <Layout:LayoutItem Header="Purchase price:" Required="True">
        <dxEditors:TextEdit Width="150"/>
    </Layout:LayoutItem>
</Layout:LayoutGroup>
See Also