wpf-devexpress-dot-xpf-dot-docking-dot-labelitem-b88a1ef1.md
Gets or sets an object that chooses a LabelItem.ContentTemplate used to visualize objects defined as a Label Item’s LabelItem.Content.
This is a dependency property.
Namespace : DevExpress.Xpf.Docking
Assembly : DevExpress.Xpf.Docking.v25.2.dll
NuGet Package : DevExpress.Wpf.Docking
public DataTemplateSelector ContentTemplateSelector { get; set; }
Public Property ContentTemplateSelector As DataTemplateSelector
| Type | Description |
|---|---|
| DataTemplateSelector |
A System.Windows.Controls.DataTemplateSelector descendant that applies a template based on custom logic.
|
The LabelItem.Content property accepts any object as a LabelItem‘s caption. Use the LabelItem.ContentTemplate property to visualize a non-string Label Item’s caption. To implement custom logic for choosing a template, you should create a System.Windows.Controls.DataTemplateSelector descendant, and override the System.Windows.Controls.DataTemplateSelector.SelectTemplate method. This method returns a data template for a specific object.
See Also