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.CanDown Property

Gets a value indicating whether the button item has two states (normal and pressed).

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[Browsable(false)]
public virtual bool CanDown { get; }

#Property Value

Type Description
Boolean

true if the button item has two states (normal and pressed); otherwise, false.

#Remarks

If a button item’s BarBaseButtonItem.ButtonStyle property is set to BarButtonStyle.Check it can have two states: normal (elevated) and pressed. In this case the BarBaseButtonItem.Down property can be used to toggle the button item’s state.

The CanDown property returns true if the BarBaseButtonItem.ButtonStyle property is set to BarButtonStyle.Check. Otherwise, false is always returned.

See Also