Back to Devexpress

Book.PageIndex Property

wpf-devexpress-dot-xpf-dot-controls-dot-book-54c37246.md

latest1.7 KB
Original Source

Book.PageIndex Property

Gets or sets the index of the page currently opened. This is a dependency property.

Namespace : DevExpress.Xpf.Controls

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

NuGet Package : DevExpress.Wpf.Controls

Declaration

csharp
public int PageIndex { get; set; }
vb
Public Property PageIndex As Integer

Property Value

TypeDescription
Int32

An integer value that specifies the index of the current page. -1 if the left page corresponds to a cover.

|

Remarks

Since a book displays facing pages, the PageIndex property can correspond to either the left or right page. The odd index corresponds to the left page, the even index corresponds to the right page.

Each time a new page is being opened, the Book.PageIndexChanging event is raised, allowing you to cancel the action. After a new page has been opened, the Book.PageIndexChanged event is fired.

See Also

PageIndexChanging

PageIndexChanged

Book Class

Book Members

DevExpress.Xpf.Controls Namespace