Condividi tramite


DataPager.DisplayMode Property

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

Gets or sets a value that indicates how the DataPager user interface is displayed.

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

Syntax

'Declaration
Public Property DisplayMode As PagerDisplayMode
public PagerDisplayMode DisplayMode { get; set; }
<sdk:DataPager DisplayMode="pagerDisplayModeValue"/>

XAML Values

  • pagerDisplayModeValue
    A named constant of the PagerDisplayMode enumeration, for example PreviousNext.

Property Value

Type: System.Windows.Controls.PagerDisplayMode
An enumeration value that indicates how the DataPager user interface is displayed.

Remarks

Dependency property identifier field: DisplayModeProperty

When the AutoEllipsis property is true, the last numeric page button is replaced with an ellipsis for any DisplayMode that shows numeric page buttons.

The following illustration shows the DataPager configured to use different display modes.

DataPager Display Modes

DataPager display modes

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.