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.IsExpanded Property

Gets or sets a value specifying whether the Navigation Pane is expanded. This is a dependency property.

Namespace: DevExpress.Xpf.NavBar

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

NuGet Package: DevExpress.Wpf.NavBar

#Declaration

public bool IsExpanded { get; set; }

#Property Value

Type Description
Boolean

true if the Navigation Pane is expanded, otherwise false.

#Remarks

Use the IsExpanded property to expand and collapse the Navigation Pane programmatically. End-users can expand/collapse the Navigation Pane by clicking the Navigation Pane Expand Button, if it’s displayed, which is controlled by the NavigationPaneView.IsExpandButtonVisible property.

Note that you can also use the NavigationPaneCommands.ChangeNavPaneExpanded command to expand/collapse the Navigation Pane.

Changing the Navigation Pane’s expansion state results in generating the NavigationPaneView.NavPaneExpandedChanging and NavigationPaneView.NavPaneExpandedChanged events.

See Also