共用方式為


IPagedCollectionView Interface

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

Defines methods and properties that a collection view implements to provide paging capabilities to a collection.

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

Syntax

'Declaration
Public Interface IPagedCollectionView
public interface IPagedCollectionView

The IPagedCollectionView type exposes the following members.

Properties

  Name Description
Public property CanChangePage Gets a value that indicates whether the PageIndex value can change.
Public property IsPageChanging Gets a value that indicates whether the page index is changing.
Public property ItemCount Gets the number of known items in the view before paging is applied.
Public property PageIndex Gets the zero-based index of the current page.
Public property PageSize Gets or sets the number of items to display on a page.
Public property TotalItemCount Gets the total number of items in the view before paging is applied.

Top

Methods

  Name Description
Public method MoveToFirstPage Sets the first page as the current page.
Public method MoveToLastPage Sets the last page as the current page.
Public method MoveToNextPage Moves to the page after the current page.
Public method MoveToPage Moves to the page at the specified index.
Public method MoveToPreviousPage Moves to the page before the current page.

Top

Events

  Name Description
Public event PageChanged When implementing this interface, raise this event after the PageIndex has changed.
Public event PageChanging When implementing this interface, raise this event before changing the PageIndex. The event handler can cancel this event.

Top

Remarks

The PagedCollectionView type implements IPagedCollectionView.

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.