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

BarOptions.BarState Property

Gets or sets whether the bar is collapsed or in its normal state.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(BarState.Expanded)]
[XtraSerializableProperty]
public virtual BarState BarState { get; set; }

#Property Value

Type Default Description
DevExpress.XtraBars.BarState Expanded

A BarState enumerator value that specifies the bar’s expansion state.

#Property Paths

You can access this nested property as listed below:

Object Type Path to BarState
Bar
.OptionsBar .BarState

#Remarks

If the BarOptions.AllowCollapse property is set to true, a bar can be collapsed. An end-user can collapse a bar by double-clicking its drag widget. The BarState property allows the bar’s expansion state to be changed in code.

See Also