Skip to main content

NavigationPaneView.ExpandedWidth Property

Gets or sets the width of the Navigation Pane when it is expanded from a collapsed state.

Namespace: DevExpress.Xpf.NavBar

Assembly: DevExpress.Xpf.NavBar.v24.1.dll

NuGet Package: DevExpress.Wpf.NavBar

Declaration

public double ExpandedWidth { get; set; }

Property Value

Type Description
Double

A Double value specifying the width of the Navigation Pane when it is expanded from the collapsed state.

Remarks

The ExpandedWidth property specifies the width a NavigationPaneView will occupy when it is expanded. This only makes sense if a Navigation Pane’s initial state is collapsed. Set the NavigationPaneView.IsExpanded to false to collapse a Navigation Pane.

If a Navigation Pane is initially expanded, use the NavBarControl‘s Width property instead. It collaborates with the ExpandedWidth property. The Width property value is assigned to the ExpandedWidth property when a Navigation Pane is collapsed and is retrieved later when the Navigation Pane is expanded again.

The ExpandedWidth property regulates a Navigation Pane’s width if the NavBarViewBase.Orientation property is set to Vertical. If NavBarViewBase.Orientation is Horizontal, the ExpandedWidth property specifies the expanded Navigation Pane’s height.

See Also