Back to Devexpress

OptionsNavPane.ShowExpandButton Property

windowsforms-devexpress-dot-xtranavbar-dot-optionsnavpane-01d6de72.md

latest2.8 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win

Declaration

csharp
[DefaultValue(true)]
public virtual bool ShowExpandButton { get; set; }
vb
<DefaultValue(True)>
Public Overridable Property ShowExpandButton As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

|

Property Paths

You can access this nested property as listed below:

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

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

ExpandedWidth

ExpandButtonMode

NavPaneState

LookAndFeel

PaintStyleKind

OptionsNavPane Class

OptionsNavPane Members

DevExpress.XtraNavBar Namespace