wpf-devexpress-dot-xpf-dot-bars-dot-barmanager-ae65f359.md
Gets or sets an object that chooses a style applied to objects generated with the BarManager.BarsSource collection. This is a dependency property.
Namespace : DevExpress.Xpf.Bars
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public StyleSelector BarStyleSelector { get; set; }
Public Property BarStyleSelector As StyleSelector
| Type | Description |
|---|---|
| StyleSelector |
A StyleSelector descendant that applies a style based on custom logic.
|
The BarManager.BarStyle property defines a style applied to objects generated with the BarManager.BarsSource 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 BarStyleSelector property.
The BarStyleSelector property supports the MVVM design pattern. Refer the MVVM Support topic for more information.
See Also