New to Telerik UI for WPFStart a free 30-day trial

Provides UI properties to be used when displaying a page in the numeric section of the pager.

Definition

Namespace:Telerik.Windows.Controls.Data.DataPager

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

C#
public class PageViewModel

Inheritance: objectPageViewModel

Constructors

Initializes a new instance of the PageViewModel class.

C#
public PageViewModel(object content, int pageIndex, bool isCurrent, string groupName, Style numericButtonStyle)
Parameters:contentobject

The content.

pageIndexint

Index of the page.

isCurrentbool

If set to true [is current].

groupNamestring

Name of the group.

numericButtonStyleStyle

The numeric button style.

Properties

Gets or sets the content.

C#
public object Content { get; }
Property Value:

The content.

Gets or sets the name of the group used as a RadioButton group for the pages.

C#
public string GroupName { get; }
Property Value:

The name of the group.

Gets or sets a value indicating whether this instance is current.

C#
public bool IsCurrent { get; }
Property Value:

true if this instance is current; otherwise, false.

Gets or sets the numeric button style.

C#
public Style NumericButtonStyle { get; }
Property Value:

The numeric button style.

Gets or sets the index of the page.

C#
public int PageIndex { get; }
Property Value:

The index of the page.