Skip to main content

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

OptionsNavPane.NavPaneState Property

Gets or sets the NavBarControl’s expansion state when the NavigationPane paint style is applied.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

[DefaultValue(NavPaneState.Expanded)]
[XtraSerializableProperty(XtraSerializationVisibility.Visible)]
public virtual NavPaneState NavPaneState { get; set; }

#Property Value

Type Default Description
NavPaneState Expanded

A NavPaneState value that specifies the control’s expansion state.

Available values:

Name Description
Expanded

A NavBarControl is in its normal state.

Collapsed

A NavBarControl is in its minimized state.

#Property Paths

You can access this nested property as listed below:

Object Type Path to NavPaneState
NavBarControl
.OptionsNavPane .NavPaneState

#Remarks

When the NavigationPane paint style is applied, the NavBarControl can be minimized to save space and then restored if necessary. Use the NavPaneState property to specify the control’s expansion state in code.

An end-user can collapse and expand the NavBarControl by clicking the Expand button. Its visibility is specified by the OptionsNavPane.ShowExpandButton property.

NavPane_ExpandButton

See Also