Skip to main content
A newer version of this page is available. .

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

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ExpandedWidth property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also