Class
PageViewModel

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:

cs-api-definition
public class PageViewModel

Inheritance: objectPageViewModel

Constructors

PageViewModel(object, int, bool, string, Style)

Initializes a new instance of the PageViewModel class.

Declaration

cs-api-definition
public PageViewModel(object content, int pageIndex, bool isCurrent, string groupName, Style numericButtonStyle)

Parameters

content

object

The content.

pageIndex

int

Index of the page.

isCurrent

bool

If set to true [is current].

groupName

string

Name of the group.

numericButtonStyle

Style

The numeric button style.

Properties

Content

Gets or sets the content.

Declaration

cs-api-definition
public object Content { get; }

Property Value

object

The content.

GroupName

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

Declaration

cs-api-definition
public string GroupName { get; }

Property Value

string

The name of the group.

IsCurrent

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

Declaration

cs-api-definition
public bool IsCurrent { get; }

Property Value

bool

true if this instance is current; otherwise, false.

NumericButtonStyle

Gets or sets the numeric button style.

Declaration

cs-api-definition
public Style NumericButtonStyle { get; }

Property Value

Style

The numeric button style.

PageIndex

Gets or sets the index of the page.

Declaration

cs-api-definition
public int PageIndex { get; }

Property Value

int

The index of the page.