BaseLayoutItem.CaptionTemplateSelector Property

Gets or sets an object that chooses a template applied to the BaseLayoutItem.CaptionTemplate property. This is a dependency property.

Namespace: DevExpress.Xpf.Docking

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


public DataTemplateSelector CaptionTemplateSelector { get; set; }

Property Value

Type Description

A System.Windows.Controls.DataTemplateSelector descendant that applies a template based on custom logic.


To implement custom logic for choosing a template, you should create a System.Windows.Controls.TemplateSelector descendant, and override the System.Windows.Controls.StyleSelector.SelectTemplate method. This method’s return value will be applied to the BaseLayoutItem.CaptionTemplate property. See this link to learn more.

See Also