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.1.dll
NuGet Package: DevExpress.Wpf.NavBar
Declaration
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.