Back to Devexpress

OptionsNavPane.NavPaneState Property

windowsforms-devexpress-dot-xtranavbar-dot-optionsnavpane-16a65c30.md

latest3.0 KB
Original Source

OptionsNavPane.NavPaneState Property

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

Namespace : DevExpress.XtraNavBar

Assembly : DevExpress.XtraNavBar.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
[DefaultValue(NavPaneState.Expanded)]
[XtraSerializableProperty(XtraSerializationVisibility.Visible)]
public virtual NavPaneState NavPaneState { get; set; }
vb
<DefaultValue(NavPaneState.Expanded)>
<XtraSerializableProperty(XtraSerializationVisibility.Visible)>
Public Overridable Property NavPaneState As NavPaneState

Property Value

TypeDefaultDescription
NavPaneStateExpanded

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

|

Available values:

NameDescription
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 TypePath 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.

See Also

ActualNavPaneState

ExpandedWidth

ShowExpandButton

LookAndFeel

PaintStyleKind

NavPaneForm

NavPaneStateChanged

OptionsNavPane Class

OptionsNavPane Members

DevExpress.XtraNavBar Namespace