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

Book.PageIndexChanging Event

Enables cancelling turning the current page.

Namespace: DevExpress.Xpf.Controls

Assembly: DevExpress.Xpf.Controls.v24.2.dll

NuGet Package: DevExpress.Wpf.Controls

#Declaration

public event PageIndexChangingEventHandler PageIndexChanging

#Event Data

The PageIndexChanging event's data class is PageIndexChangingEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
NewPageIndex Gets or sets the index of the current page.
OldPageIndex Gets the index of the previous page.

#Remarks

The PageIndexChanging event is raised before a new page is about to be opened. This occurs when an end-user turns the page, or the page is opened in code using the Book.PageIndex property.

The PageIndexChanging event can be handled to do the following:

After a new page has been opened, the Book.PageIndexChanged event is fired.

See Also