Skip to main content

DashboardControl.TitleContentTemplateSelector Property

Gets or sets an object that returns a template based on custom logic. This is a dependency property.

Namespace: DevExpress.DashboardWpf

Assembly: DevExpress.Dashboard.v24.2.Wpf.dll

Declaration

public DataTemplateSelector TitleContentTemplateSelector { get; set; }

Property Value

Type Description
DataTemplateSelector

An object that applies templates based on custom logic.’

Remarks

Use the TitleContentTemplateSelector property to assign a template to the TitleContentTemplate property based on custom logic.

To accomplish this, take the following steps:

  • Implement a class that descends from the DataTemplateSelector class.
  • Implement the SelectTemplate method that returns a template based on custom logic.
  • Instantiate the class and assign it to the TitleContentTemplateSelector property.

The style specified by the TitleContentTemplateSelector property has priority over the style specified by the TitleContentTemplate property. If the TitleContentTemplateSelector property is null, the TitleContentTemplate property is in effect.

See Also