Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BaseView.NextDocument Event

Fires when an end-user tries to switch to the next or previous document by pressing CTRL+TAB or CTRL+SHIFT+TAB.

Namespace: DevExpress.XtraBars.Docking2010.Views

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public event NextDocumentEventHandler NextDocument

#Event Data

The NextDocument event's data class is DevExpress.XtraBars.Docking2010.Views.NextDocumentEventArgs.

#Remarks

An end-user can navigate through tabs via the CTRL+TAB and CTRL+SHIFT+TAB shortcuts. The CTRL+TAB shortcut activates the following tab, while the CTRL+SHIFT+TAB shortcut activates the preceding tab.

The NextDocument event allows you to implement custom tab navigation when an end-user uses these shortcuts. The current active tab is identified by the event’s Document parameter. The next tab that is going to be activated is specified by the NextDocument parameter. To navigate to a custom tab, assign a corresponding document to the NextDocument parameter and set the event’s Handled parameter to true. When the Handled parameter is set to true, no default processing will be performed for the current action after your event handler has been completed.

See Also