OfficeNavigationBar.SelectedItemChanging Event

Allows you to prevent an item from being selected.

Namespace: DevExpress.XtraBars.Navigation

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

[DXCategory("Behavior")]
public event NavigationBarItemCancelEventHandler SelectedItemChanging
<DXCategory("Behavior")>
Public Event SelectedItemChanging As NavigationBarItemCancelEventHandler

Event Data

The SelectedItemChanging event's data class is DevExpress.XtraBars.Navigation.SelectedItemChangingEventArgs.

Remarks

By default, when an end-user clicks an item, it is selected, provided that the item selection feature is enabled (see OfficeNavigationBar.AllowItemSelection). You can prevent a certain item from being selected by handling the SelectedItemChanging event and setting the event's Cancel parameter to true.

After the item is selected, the OfficeNavigationBar.SelectedItemChanged event fires. This is only a notification event.

See Also