Skip to main content

OptionsNavPane.ShowExpandButton Property

Gets or sets whether the expand button is visible when the NavigationPane paint style is applied.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.1.dll

NuGet Packages: DevExpress.Win, DevExpress.Win.Navigation

Declaration

[DefaultValue(true)]
public virtual bool ShowExpandButton { get; set; }

Property Value

Type Default Description
Boolean true

true if the expand button is visible; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowExpandButton
NavBarControl
.OptionsNavPane .ShowExpandButton

Remarks

When the NavigationPane paint style is applied, the NavBarControl displays the expand button by default, which allows an end-user to minimize and then restore the control.

NavPane_ExpandButton

Use the ShowExpandButton property to control the expand button’s visibility. If the button is hidden, the NavBarControl can still be minimized and restored programmatically, via the OptionsNavPane.NavPaneState property.

The expand button’s arrow indicates the direction in which the control is expanded/collapsed. If the NavBarControl is docked to the form’s or panel’s right edge, you may want to invert the direction of the expand button’s arrow. To do this, use the OptionsNavPane.ExpandButtonMode property.

See Also