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

BarBaseButtonItem.ButtonStyle Property

Gets or sets the button item’s style which determines how it functions.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public virtual BarButtonStyle ButtonStyle { get; set; }

#Property Value

Type Description
BarButtonStyle

A BarButtonStyle value that determines how this item functions.

Available values:

Name Description
Default

Applies the Default style to the BarButtonItem component. The default style means that the link represents a regular push button.

DropDown

Applies the DropDown style to the BarButtonItem component.

Check

Applies the Check style to the BarButtonItem component.

CheckDropDown

Combines Check and DropDown styles. The target bar button item supports checked/unchecked states and has an assigned drop-down control.

#Remarks

This property does not implement any specific functionality in the BarBaseButtonItem class. It is overridden by the descendant classes.

For BarCheckItem objects this property always returns BarButtonStyle.Check and it cannot be changed.

For BarButtonItem objects and their descendants the BarButtonItem.ButtonStyle property can be set to any BarButtonStyle value. See this member’s description for more information.

See Also