Back to Devexpress

Book.PageIndexChanging Event

wpf-devexpress-dot-xpf-dot-controls-dot-book-f2ba051e.md

latest2.7 KB
Original Source

Book.PageIndexChanging Event

Enables cancelling turning the current page.

Namespace : DevExpress.Xpf.Controls

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

NuGet Package : DevExpress.Wpf.Controls

Declaration

csharp
public event PageIndexChangingEventHandler PageIndexChanging
vb
Public Event PageIndexChanging As PageIndexChangingEventHandler

Event Data

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

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
NewPageIndexGets or sets the index of the current page.
OldPageIndexGets 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

PageIndex

PageIndexChanged

Book Class

Book Members

DevExpress.Xpf.Controls Namespace