Skip to main content
A newer version of this page is available. .

RibbonControl.ToolbarItemStyleSelector Property

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

Namespace: DevExpress.Xpf.Ribbon

Assembly: DevExpress.Xpf.Ribbon.v19.2.dll

Declaration

public StyleSelector ToolbarItemStyleSelector { get; set; }

Property Value

Type Description
StyleSelector

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

Remarks

The RibbonControl.ToolbarItemStyle property defines a style applied to objects generated with the RibbonControl.ToolbarItemLinksSource 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 ToolbarItemStyleSelector property.

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

See Also