Back to Devexpress

NavBarGroup.Command Property

wpf-devexpress-dot-xpf-dot-navbar-dot-navbargroup-b72bcb88.md

latest2.6 KB
Original Source

NavBarGroup.Command Property

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

Declaration

csharp
[Bindable(true)]
public ICommand Command { get; set; }
vb
<Bindable(True)>
Public Property Command As ICommand

Property Value

TypeDescription
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

Click

CommandTarget

CommandParameter

ActiveGroup

Activate

NavBarGroup Class

NavBarGroup Members

DevExpress.Xpf.NavBar Namespace