Bar
A newer version of this page is available. Switch to the current version.

BarItem.RibbonStyle Property

Gets or sets the options that specify the bar item link's possible states within a RibbonControl. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

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

Declaration

public RibbonItemStyles RibbonStyle { get; set; }

Property Value

Type Description
RibbonItemStyles

A set of RibbonItemStyles flags that specify the bar item link's possible states within a Ribbon Control.

Available values:

Name Description
Default

If active, a bar item link's possible states with a Ribbon Control are determined based on the link's settings. For example, if the link is associated with a small image and isn't associated with a large image, its possible states within the Ribbon Control are SmallWithoutText and SmallWithText.

Large

If active, a bar item link can be represented by a large image with a caption.

SmallWithText

If active, a bar item link can be represented by a small image with a caption.

SmallWithoutText

If active, a bar item link can be represented by a small image.

All

If active, enables all other options.

Remarks

For bar item links displayed within a RibbonControl, you can customize which states these objects support. You can customize these settings for bar item links and corresponding bar items via the BarItemLinkBase.RibbonStyle and BarItem.RibbonStyle properties, respectively.

A link's RibbonStyle property has a higher priority than the corresponding bar item's RibbonStyle property. If a bar item link's BarItemLinkBase.RibbonStyle property is set to Default, the corresponding bar item's property is used. Otherwise, the bar item's RibbonStyle property is ignored.

See Also