Поделиться через


DataPager.PageSize Property

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

Gets or sets a value that indicates the number of items displayed on a page.

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

Syntax

'Declaration
Public Property PageSize As Integer
public int PageSize { get; set; }
<sdk:DataPager PageSize="int"/>

Property Value

Type: System.Int32
A value that indicates the number of items displayed on a page.

Exceptions

Exception Condition
ArgumentOutOfRangeException

Page size is less than 0.

Remarks

Dependency property identifier field: PageSizeProperty

The source typically implements the IPagedCollectionView interface. In this case, PageSize gets or sets the IPagedCollectionView.PageSize of the IPagedCollectionView.

If the source is a collection that implements IEnumerable<T> but not IPagedCollectionView, the DataPager ignores PageSize.

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.