The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.1.Wpf.dll

Declaration

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

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