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

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