wpf-devexpress-dot-xpf-dot-navbar-dot-navbargroup-b72bcb88.md
Gets or sets the command to invoke when the NavBar group is activated.
Namespace : DevExpress.Xpf.NavBar
Assembly : DevExpress.Xpf.NavBar.v25.2.dll
NuGet Package : DevExpress.Wpf.NavBar
[Bindable(true)]
public ICommand Command { get; set; }
<Bindable(True)>
Public Property Command As ICommand
| Type | Description |
|---|---|
| ICommand |
The ICommand object to invoke when the NavBar group is activated.
|
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