Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarItemLinkHolderBase.ItemStyleSelector Property

Gets or sets an object that chooses a style applied to objects generated with the BarItemLinkHolderBase.ItemLinksSource collection. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public StyleSelector ItemStyleSelector { get; set; }

#Property Value

Type Description
StyleSelector

A StyleSelector descendant that applies a style based on custom logic.

#Remarks

The BarItemLinkHolderBase.ItemStyle property defines a style applied to objects generated with the BarItemLinkHolderBase.ItemLinksSource collection. If you have more than one style, you can implement custom logic to choose the required style. To do this, derive from the StyleSelector class, implement the SelectStyle method that returns the style which meets the required condition, and assign it to the ItemStyleSelector property.

The ItemStyleSelector property supports the MVVM design pattern. Refer the MVVM Support topic for more information.

See Also