OfficeNavigationBar.ItemClick Event
Fires when an item is clicked.
Namespace: DevExpress.XtraBars.Navigation
Assembly: DevExpress.XtraBars.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Event Data
The ItemClick event's data class is DevExpress.XtraBars.Navigation.NavigationBarItemEventArgs.
Remarks
Handle the ItemClick event to respond to item clicking.
The OfficeNavigationBar supports two types of items:
- NavigationBarItem is a regular item, which you can add at design time and runtime.
- ClientNavigationBarItem is an item automatically created when the OfficeNavigationBar is linked to a NavBarControl via the OfficeNavigationBar.NavigationClient property. When the OfficeNavigationBar is linked to a NavBarControl, additional ClientNavigationBarItems are added to the OfficeNavigationBar.Items collection that will represent the NavBarControl‘s groups. These items have the same captions as NavBarGroups in the bound NavBarControl. A click on these items activates a corresponding group in the NavBarControl.
The ItemClick event fires when clicking both NavigationBarItem and ClientNavigationBarItem items.
See Also