Condividi tramite


DataPager.NumericButtonCount Property

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

Gets or sets a value that indicates the number of page buttons shown on the DataPager user interface.

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

Syntax

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

Property Value

Type: System.Int32
The number of page buttons shown on the DataPager user interface.

Remarks

Dependency property identifier field: NumericButtonCountProperty

When the AutoEllipsis property is true, the last numeric page button is replaced with an ellipsis. The ellipsis is counted as a numeric page button in the NumericButtonCount property. For example, if NumericButtonCount is 5, the DataPager will display numeric buttons for pages 1 through 4, and an ellipsis for the last button: "1 2 3 4 … ".

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.