Back to Devexpress

DashboardControlBase.ListBoxItemStyleSelector Property

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrolbase-c7a01561.md

latest2.2 KB
Original Source

DashboardControlBase.ListBoxItemStyleSelector 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.v25.2.dll

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

csharp
public StyleSelector ListBoxItemStyleSelector { get; set; }
vb
Public Property ListBoxItemStyleSelector As StyleSelector

Property Value

TypeDescription
StyleSelector

An object that applies styles based on custom logic.

|

Remarks

Use the ListBoxItemStyleSelector property to apply a style to the ListBoxItemStyle property based on custom logic.

To accomplish this, take 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 ListBoxItemStyleSelector property.

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

See Also

DashboardControlBase Class

DashboardControlBase Members

DevExpress.DashboardWpf Namespace