Back to Devexpress

BarBaseButtonItem.CanDown Property

windowsforms-devexpress-dot-xtrabars-dot-barbasebuttonitem-c9caaa07.md

latest2.0 KB
Original Source

BarBaseButtonItem.CanDown Property

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

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public virtual bool CanDown { get; }
vb
<Browsable(False)>
Public Overridable ReadOnly Property CanDown As Boolean

Property Value

TypeDescription
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

ButtonStyle

Down

BarBaseButtonItem Class

BarBaseButtonItem Members

DevExpress.XtraBars Namespace