Skip to main content
A newer version of this page is available. .

BaseLayoutItem.CaptionTemplate Property

Gets or sets the template used to visualize the current item’s BaseLayoutItem.Caption.

Namespace: DevExpress.Xpf.Docking

Assembly: DevExpress.Xpf.Docking.v19.1.dll

Declaration

public DataTemplate CaptionTemplate { get; set; }

Property Value

Type Description
DataTemplate

A DataTemplate object that visualizes the current item’s BaseLayoutItem.Caption.

Remarks

The BaseLayoutItem.Caption property specifies an item caption. To visualize a non-string BaseLayoutItem.Caption use the CaptionTemplate property. The BaseLayoutItem.CaptionTemplateSelector property is used to implement custom logic on selecting a template.

If an item is presented as a tab item, by default, its tab caption is determined by the BaseLayoutItem.Caption property. In this case, the CaptionTemplate is also applied to this default tab caption.

See Also