Compartilhar via


PagedCollectionView.MoveToPage Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Moves to the page at the specified index.

Namespace:  System.Windows.Data
Assembly:  System.Windows.Data (in System.Windows.Data.dll)

Syntax

'Declaration
Public Function MoveToPage ( _
    pageIndex As Integer _
) As Boolean
public bool MoveToPage(
    int pageIndex
)

Parameters

  • pageIndex
    Type: System.Int32
    The index of the page to move to.

Return Value

Type: System.Boolean
true if the operation was successful; otherwise, false.

Implements

IPagedCollectionView.MoveToPage(Int32)

Remarks

When a page change occurs, the PagedCollectionView will try to commit any pending add or edit transactions. If the transactions cannot be committed successfully, the page move will be canceled.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.