Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Wpf.Controls

Declaration

public int PageIndex { get; set; }

Property Value

Type Description
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.

Book_PageIndex

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