Back to Devexpress

PageIndexChangingEventArgs Class

wpf-devexpress-dot-xpf-dot-controls-d8082bf8.md

latest2.1 KB
Original Source

PageIndexChangingEventArgs Class

Provides data for the Book.PageIndexChanging event.

Namespace : DevExpress.Xpf.Controls

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

NuGet Package : DevExpress.Wpf.Controls

Declaration

csharp
public class PageIndexChangingEventArgs :
    CancelEventArgs
vb
Public Class PageIndexChangingEventArgs
    Inherits CancelEventArgs

PageIndexChangingEventArgs is the data class for the following events:

Remarks

The Book.PageIndexChanging event is raised when an end-user is about to open a new page, allowing you to cancel the action. To do this, set the Cancel property to true.

Use the PageIndexChangingEventArgs.OldPageIndex and PageIndexChangingEventArgs.NewPageIndex properties to obtain indexes of the previously opened page, and the page an end-user is trying to open, respectively. You can navigate to an arbitrary page by assigning the appropriate page index to the PageIndexChangingEventArgs.NewPageIndex property.

Inheritance

Object EventArgs CancelEventArgs PageIndexChangingEventArgs

See Also

PageIndexChangingEventArgs Members

DevExpress.Xpf.Controls Namespace