RibbonControlBase.HeaderItemTemplate Property

Gets or sets a template that defines the presentation of ribbon tab headers. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Ribbon

Assembly: DevExpress.UI.Xaml.Ribbon.v18.2.dll

Declaration

public DataTemplate HeaderItemTemplate { get; set; }
Public Property HeaderItemTemplate As DataTemplate

Property Value

Type Description
Windows.UI.Xaml.DataTemplate

A object that represents the ribbon tab header template.

Use the HeaderItemTemplate property to specify the appearance of tab item headers.

The binding source for the HeaderItemTemplate template is represented by the HeaderContainerViewModel object.

The following example demonstrates a tab header that contains a white border.

<Ribbon:RibbonControl.HeaderItemTemplate>
    <DataTemplate>
        <Border BorderBrush="White" BorderThickness="3">
            <TextBlock Text="{Binding Container.Caption}" Margin="5" />
        </Border>
    </DataTemplate>
</Ribbon:RibbonControl.HeaderItemTemplate>

See Also