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

NavBarGroup.Command Property

Gets or sets the command to invoke when the NavBar group is activated.

Namespace: DevExpress.Xpf.NavBar

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

NuGet Package: DevExpress.Wpf.NavBar

#Declaration

[Bindable(true)]
public ICommand Command { get; set; }

#Property Value

Type Description
ICommand

The ICommand object to invoke when the NavBar group is activated.

#Remarks

If a NavBarGroup was activated via a click at runtime, a Command is executed and the NavBarGroup.Activate and NavBarGroup.Click events fire. If an end-user clicks an already active group, the NavBarGroup.Activate event is skipped. To activate a group via code, rather than an end-user click, use the NavBarControl.ActiveGroup property, NavBarCommands.SetActiveGroup command or NavBarViewBase.SetActiveGroup method.

To specify a command executed when a group’s item is clicked, use the NavBarItem.Command property or the NavBarItem.Click instead. See the Clicking and Selecting Items to learn more.

See Also