Collapsed Navigation Pane
- 2 minutes to read
To save form space, the Navigation Pane and the entire NavBar control can be collapsed in the same manner as the Navigation Pane in Microsoft Office 2007.
When collapsed, the control displays the following elements to provide quick access to its elements:
The “Navigation Pane” button. You can modify the button’s caption via the OptionsView.NavigationPane.ShowActiveGroupCaptionWhenCollapsed option. Clicking this button invokes a popup window, which displays the active group‘s contents. You can allow end-users to horizontally size the popup window to specify the NavBar control’s width in the expanded state. To enable this feature, set the control’s OptionsBehavior.NavigationPane.AdjustWidthByPopup property to True. Handle the OnNavigationPanePopupShowing and OnNavigationPanePopupShowed events to respond to clicking this button and prohibit the Navigation Pane from displaying the popup window.
Buttons that correspond to visible items of the active group. If the control’s height is not sufficient to fit all these items, only some of them will be displayed. To access all items, end-users have to click the “Navigation Pane” button.
Group headers of inactive groups, the overflow panel (if enabled), and the splitter. These elements provide the same functionality as in the expanded Navigation Pane.
To make the Navigation Pane collapsible, set the NavBar control’s OptionsBehavior.NavigationPane.Collapsible property to True. This displays a double arrow in the Navigation Pane’s header section.
Expanded State | Collapsed State |
---|---|
End-users can click this arrow to collapse and expand the Navigation Pane. Refer to the Expanding and Collapsing Navigation Panes help topic, to learn more.