Back to Devexpress

Commands

wpf-6460-controls-and-libraries-navigation-controls-navigation-bar-miscellaneous-commands.md

latest3.5 KB
Original Source

Commands

  • Aug 04, 2023
  • 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.

CommandTarget TypeParameterCorresponding Method
NavBarCommands.ChangeGroupExpandedA NavBarViewBase descendant representing the navbar’s view.A NavBarGroup instance specifying the required group.NavBarViewBase.ChangeGroupExpanded
NavBarCommands.SelectItemA NavBarViewBase descendant representing the navbar’s view.A NavBarItem instance specifying the required item.NavBarViewBase.SelectItem
NavBarCommands.SetActiveGroupA 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

|