Class DataPager
Handles paging for an IPagedCollectionView.
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Data.dll
Syntax
[TemplatePart(Name = "FirstPageButton", Type = typeof(ButtonBase))]
[TemplatePart(Name = "PreviousPageButton", Type = typeof(ButtonBase))]
[TemplatePart(Name = "CurrentPagePrefixTextBlock", Type = typeof(TextBlock))]
[TemplatePart(Name = "CurrentPageSuffixTextBlock", Type = typeof(TextBlock))]
[TemplatePart(Name = "CurrentPageTextBox", Type = typeof(TextBox))]
[TemplatePart(Name = "NextPageButton", Type = typeof(ButtonBase))]
[TemplatePart(Name = "LastPageButton", Type = typeof(ButtonBase))]
[TemplatePart(Name = "NumericButtonPanel", Type = typeof(Panel))]
[StyleTypedProperty(Property = "NumericButtonStyle", StyleTargetType = typeof(ToggleButton))]
public class DataPager : Control
Constructors
| Improve this Doc View SourceDataPager()
Initializes a new instance of the DataPager class.
Declaration
public DataPager()
Fields
| Improve this Doc View SourceAutoEllipsisProperty
Identifies the AutoEllipsis dependency property.
Declaration
public static readonly DependencyProperty AutoEllipsisProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
CanChangePageProperty
Identifies the CanChangePage dependency property.
Declaration
public static readonly DependencyProperty CanChangePageProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
CanMoveToFirstPageProperty
Identifies the CanMoveToFirstPage dependency property.
Declaration
public static readonly DependencyProperty CanMoveToFirstPageProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
CanMoveToLastPageProperty
Identifies the CanMoveToLastPage dependency property.
Declaration
public static readonly DependencyProperty CanMoveToLastPageProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
CanMoveToNextPageProperty
Identifies the CanMoveToNextPage dependency property.
Declaration
public static readonly DependencyProperty CanMoveToNextPageProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
CanMoveToPreviousPageProperty
Identifies the CanMoveToPreviousPage dependency property.
Declaration
public static readonly DependencyProperty CanMoveToPreviousPageProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
DisplayModeProperty
Identifies the DisplayMode dependency property.
Declaration
public static readonly DependencyProperty DisplayModeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsTotalItemCountFixedProperty
Identifies the IsTotalItemCountFixed dependency property.
Declaration
public static readonly DependencyProperty IsTotalItemCountFixedProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ItemCountProperty
Identifies the ItemCount dependency property.
Declaration
public static readonly DependencyProperty ItemCountProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
NumericButtonCountProperty
Identifies the NumericButtonCount dependency property.
Declaration
public static readonly DependencyProperty NumericButtonCountProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
NumericButtonStyleProperty
Identifies the NumericButtonStyle dependency property.
Declaration
public static readonly DependencyProperty NumericButtonStyleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PageCountProperty
Identifies the PageCount dependency property.
Declaration
public static readonly DependencyProperty PageCountProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PageIndexProperty
Identifies the PageIndex dependency property.
Declaration
public static readonly DependencyProperty PageIndexProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PageSizeProperty
Identifies the PageSize dependency property.
Declaration
public static readonly DependencyProperty PageSizeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
SourceProperty
Identifies the Source dependency property.
Declaration
public static readonly DependencyProperty SourceProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceAutoEllipsis
Gets or sets a value that indicates whether or not to use an ellipsis as the last button.
Declaration
public bool AutoEllipsis { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
CanChangePage
Gets a value that indicates whether or not the user is allowed to move to another page
Declaration
public bool CanChangePage { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CanMoveToFirstPage
Gets a value that indicates whether or not the DataPager will allow the user to attempt to move to the first page if CanChangePage is true.
Declaration
public bool CanMoveToFirstPage { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CanMoveToLastPage
Gets a value that indicates whether or not the DataPager will allow the user to attempt to move to the last page if CanChangePage is true.
Declaration
public bool CanMoveToLastPage { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CanMoveToNextPage
Gets a value that indicates whether or not the DataPager will allow the user to attempt to move to the next page ifCanChangePage is true.
Declaration
public bool CanMoveToNextPage { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
CanMoveToPreviousPage
Gets a value that indicates whether or not the DataPager will allow the user to attempt to move to the previous page if CanChangePage is true.
Declaration
public bool CanMoveToPreviousPage { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
DisplayMode
Gets or sets a value that indicates how the DataPager user interface is displayed
Declaration
public PagerDisplayMode DisplayMode { get; set; }
Property Value
Type | Description |
---|---|
PagerDisplayMode |
IsTotalItemCountFixed
Gets or sets a value that indicates whether or not the total number of items in the collection is fixed.
Declaration
public bool IsTotalItemCountFixed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ItemCount
Gets the current number of known items in the IPagedCollectionView .
Declaration
public int ItemCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
NumericButtonCount
Gets or sets a value that indicates the number of page buttons shown on the DataPager user interface.
Declaration
public int NumericButtonCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
NumericButtonStyle
Gets or sets the style that will be used for the numeric buttons.
Declaration
public Style NumericButtonStyle { get; set; }
Property Value
Type | Description |
---|---|
Style |
PageCount
Gets the current number of known pages in the IPagedCollectionView .
Declaration
public int PageCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
PageIndex
Gets or sets the current PageIndex in the IPagedCollectionView .
Declaration
public int PageIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
PageSize
Gets or sets the current PageSize in the IPagedCollectionView .
Declaration
public int PageSize { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Source
Gets or sets the IPagedCollectionView .
Declaration
public IEnumerable Source { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.IEnumerable |
Methods
| Improve this Doc View SourceOnApplyTemplate()
Applies the control's template, retrieves the elements within it, and sets up events.
Declaration
public override void OnApplyTemplate()
Overrides
| Improve this Doc View SourceOnCreateAutomationPeer()
Creates an AutomationPeer (OnCreateAutomationPeer())
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type | Description |
---|---|
AutomationPeer | Automation Peer for this DataPager control |
Overrides
Events
| Improve this Doc View SourcePageIndexChanged
EventHandler for when PageIndex has changed.
Declaration
public event EventHandler<EventArgs> PageIndexChanged
Event Type
Type | Description |
---|---|
System.EventHandler<System.EventArgs> |
PageIndexChanging
EventHandler for when PageIndex is changing.
Declaration
public event EventHandler<CancelEventArgs> PageIndexChanging
Event Type
Type | Description |
---|---|
System.EventHandler<System.ComponentModel.CancelEventArgs> |