Skip to main content

DashboardControlBase.DashboardItemStyleSelector Property

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

Namespace: DevExpress.DashboardWpf

Assembly: DevExpress.Xpf.Dashboard.v23.2.dll

NuGet Package: DevExpress.Wpf.Dashboard

Declaration

public StyleSelector DashboardItemStyleSelector { get; set; }

Property Value

Type Description
StyleSelector

An object that applies styles based on custom logic.

Remarks

Use the DashboardItemStyleSelector property to apply a style to the ComboBoxItemStyle property based on custom logic.

To accomplish this, execute the following steps:

  • Implement a class that descends from the StyleSelector class.
  • Implement the SelectStyle method that returns the style based on custom logic.
  • Instantiate the class and assign it to the DashboardItemStyleSelector property.

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

See Also