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

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.v18.2.dll

Declaration

public DataTemplateSelector CaptionTemplateSelector { get; set; }

Property Value

Type Description
DataTemplateSelector

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

Remarks

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