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.v20.1.dll

Declaration

public DataTemplateSelector CaptionTemplateSelector { get; set; }
Public Property CaptionTemplateSelector As DataTemplateSelector

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