Skip to main content

Commands

  • 2 minutes to read

The NavBarControl provides you within a set of built-in commands allowing some mostly used actions to be easily programmed via XAML markup.

Common Commands

The NavBarCommands class provides access to general commands that are available, regardless of the applied view.

Command Target Type Parameter Corresponding Method
NavBarCommands.ChangeGroupExpanded A NavBarViewBase descendant representing the navbar’s view. A NavBarGroup instance specifying the required group. NavBarViewBase.ChangeGroupExpanded
NavBarCommands.SelectItem A NavBarViewBase descendant representing the navbar’s view. A NavBarItem instance specifying the required item. NavBarViewBase.SelectItem
NavBarCommands.SetActiveGroup A NavBarViewBase descendant representing the navbar’s view. A NavBarGroup instance specifying the required group. NavBarViewBase.SetActiveGroup

The NavigationPaneCommands class contains commands that are in effect only if the Navigation Pane view (NavigationPaneView) is applied to the navbar control.

Command

Target Type

Parameter

Corresponding Method

NavigationPaneCommands.ChangeNavPaneExpanded

A NavigationPaneView object representing the navbar’s view.

None

NavigationPaneView.ChangeNavPaneExpanded

NavigationPaneCommands.ShowFewerGroups

A NavigationPaneView object representing the navbar’s view.

The number by which to decrease the number of visible group headers.

If omitted (or set to null), the number of visible group headers is decreased by one.

NavigationPaneView.ShowFewerGroups

NavigationPaneCommands.ShowMoreGroups

A NavigationPaneView object representing the navbar’s view.

the number by which to increase the number of visible group headers.

If omitted (or set to null), the number of visible group headers is increased by one.

NavigationPaneView.ShowMoreGroups