Partager via


PagedCollectionView.MoveToLastPage Method

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

Sets the last page as the current page.

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

Syntax

'Declaration
Public Function MoveToLastPage As Boolean
public bool MoveToLastPage()

Return Value

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

Implements

IPagedCollectionView.MoveToLastPage()

Remarks

The move is only tried if TotalItemCount is known.

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.