Show / Hide Table of Contents

Class DataPager

Handles paging for an IPagedCollectionView.

Inheritance
System.Object
DependencyObject
UIElement
FrameworkElement
Control
DataPager
Inherited Members
Control.EnableBaseControlHandlingOfVisualStates
Control.ManageIsEnabled(Boolean)
Control.Background
Control.BackgroundProperty
Control.BorderBrush
Control.BorderBrushProperty
Control.BorderThickness
Control.BorderThicknessProperty
Control.FontWeight
Control.FontWeightProperty
Control.FontStyle
Control.FontStyleProperty
Control.Foreground
Control.ForegroundProperty
Control.FontFamily
Control.FontFamilyProperty
Control.FontSize
Control.FontSizeProperty
Control.TextDecorations
Control.TextDecorationsProperty
Control.Padding
Control.PaddingProperty
Control.HorizontalContentAlignment
Control.HorizontalContentAlignmentProperty
Control.VerticalContentAlignment
Control.VerticalContentAlignmentProperty
Control.TabIndex
Control.TabIndexProperty
Control.IsTabStop
Control.IsTabStopProperty
Control.TabNavigation
Control.TabNavigationProperty
Control.Template
Control.TemplateProperty
Control.ApplyTemplate()
Control.GetTemplateChild(String)
Control.Focus()
Control.HandlesScrolling
Control.OnGotFocus(RoutedEventArgs)
Control.OnLostFocus(RoutedEventArgs)
Control.CreateDomElement(Object, Object)
Control.CharacterSpacingProperty
Control.CharacterSpacing
Control.FontStretchProperty
Control.FontStretch
Control.OnDrop(DragEventArgs)
Control.OnDragEnter(DragEventArgs)
Control.OnDragLeave(DragEventArgs)
Control.OnTextInputUpdate(TextCompositionEventArgs)
Control.MeasureOverride(Size)
Control.ArrangeOverride(Size)
FrameworkElement.LayoutUpdated
FrameworkElement.SizeChanged
FrameworkElement.ResourceLookupMode
FrameworkElement.StyleProperty
FrameworkElement.Style
FrameworkElement.DefaultStyleKeyProperty
FrameworkElement.DefaultStyleKey
FrameworkElement.OverridesDefaultStyleProperty
FrameworkElement.OverridesDefaultStyle
FrameworkElement.OnVisualParentChanged(DependencyObject)
FrameworkElement.VisualChildrenCount
FrameworkElement.GetVisualChild(Int32)
FrameworkElement.Parent
FrameworkElement.AddLogicalChild(Object)
FrameworkElement.RemoveLogicalChild(Object)
FrameworkElement.LogicalChildren
FrameworkElement.TemplatedParent
FrameworkElement.Resources
FrameworkElement.IsLoaded
FrameworkElement.SetBinding(DependencyProperty, BindingBase)
FrameworkElement.SetBinding(DependencyProperty, Binding)
FrameworkElement.GetBindingExpression(DependencyProperty)
FrameworkElement.Cursor
FrameworkElement.CursorProperty
FrameworkElement.FindName(String)
FrameworkElement.Name
FrameworkElement.NameProperty
FrameworkElement.DataContext
FrameworkElement.DataContextProperty
FrameworkElement.DataContextChanged
FrameworkElement.Triggers
FrameworkElement.FlowDirectionProperty
FrameworkElement.FlowDirection
FrameworkElement.LanguageProperty
FrameworkElement.Language
FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs)
FrameworkElement.Tag
FrameworkElement.TagProperty
FrameworkElement.LoadedEvent
FrameworkElement.Loaded
FrameworkElement.Unloaded
FrameworkElement.BindingValidationError
FrameworkElement.ContextMenuProperty
FrameworkElement.ContextMenu
FrameworkElement.ContextMenuOpening
FrameworkElement.ToolTipProperty
FrameworkElement.ToolTip
FrameworkElement.INTERNAL_OnDetachedFromVisualTree()
FrameworkElement.INTERNAL_OnAttachedToVisualTree()
FrameworkElement.Height
FrameworkElement.HeightProperty
FrameworkElement.Width
FrameworkElement.WidthProperty
FrameworkElement.HorizontalAlignment
FrameworkElement.HorizontalAlignmentProperty
FrameworkElement.VerticalAlignment
FrameworkElement.VerticalAlignmentProperty
FrameworkElement.Margin
FrameworkElement.MarginProperty
FrameworkElement.MinHeight
FrameworkElement.MinHeightProperty
FrameworkElement.MinWidth
FrameworkElement.MinWidthProperty
FrameworkElement.MaxHeight
FrameworkElement.MaxHeightProperty
FrameworkElement.MaxWidth
FrameworkElement.MaxWidthProperty
FrameworkElement.ActualWidthProperty
FrameworkElement.ActualWidth
FrameworkElement.ActualHeightProperty
FrameworkElement.ActualHeight
UIElement.TransformToVisual(UIElement)
UIElement.RenderSize
UIElement.DesiredSize
UIElement.InvalidateMeasure()
UIElement.InvalidateArrange()
UIElement.Measure(Size)
UIElement.Arrange(Rect)
UIElement.UpdateLayout()
UIElement.DragEnter
UIElement.DragLeave
UIElement.Drop
UIElement.DragOver
UIElement.CacheMode
UIElement.CacheModeProperty
UIElement.Projection
UIElement.ProjectionProperty
UIElement.VisualParent
UIElement.AddVisualChild(UIElement)
UIElement.RemoveVisualChild(UIElement)
UIElement.OnVisualChildrenChanged(DependencyObject, DependencyObject)
UIElement.XamlSourcePath
UIElement.ClipToBounds
UIElement.ClipToBoundsProperty
UIElement.ClipProperty
UIElement.Clip
UIElement.IsEnabledProperty
UIElement.IsEnabled
UIElement.IsEnabledChanged
UIElement.EffectProperty
UIElement.Effect
UIElement.RenderTransformProperty
UIElement.RenderTransform
UIElement.RenderTransformOriginProperty
UIElement.RenderTransformOrigin
UIElement.UseLayoutRounding
UIElement.UseLayoutRoundingProperty
UIElement.Visibility
UIElement.VisibilityProperty
UIElement.IsVisibleProperty
UIElement.IsVisible
UIElement.IsVisibleChanged
UIElement.OpacityProperty
UIElement.Opacity
UIElement.OpacityMaskProperty
UIElement.OpacityMask
UIElement.IsHitTestVisible
UIElement.IsHitTestVisibleProperty
UIElement.AllowDrop
UIElement.AllowDropProperty
UIElement.CaptureMouse()
UIElement.IsMouseCaptured
UIElement.ReleaseMouseCapture()
UIElement.AllowScrollOnTouchMove
UIElement.AllowScrollOnTouchMoveProperty
UIElement.AddHandler(RoutedEvent, Delegate, Boolean)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.OnMouseMove(MouseEventArgs)
UIElement.MouseLeftButtonDownEvent
UIElement.MouseLeftButtonDown
UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)
UIElement.MouseRightButtonDownEvent
UIElement.MouseRightButtonDown
UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.MouseLeftButtonUpEvent
UIElement.MouseLeftButtonUp
UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.TextInputStartEvent
UIElement.TextInputStart
UIElement.OnTextInputStart(TextCompositionEventArgs)
UIElement.TextInputEvent
UIElement.TextInput
UIElement.OnTextInput(TextCompositionEventArgs)
UIElement.TextInputUpdateEvent
UIElement.TextInputUpdate
UIElement.TappedEvent
UIElement.Tapped
UIElement.OnTapped(TappedRoutedEventArgs)
UIElement.MouseRightButtonUpEvent
UIElement.MouseRightButtonUp
UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.OnKeyDown(KeyEventArgs)
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.OnKeyUp(KeyEventArgs)
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.LostMouseCapture
UIElement.OnLostMouseCapture(MouseEventArgs)
UIElement.INTERNAL_AttachToDomEvents()
UIElement.INTERNAL_DetachFromDomEvents()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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, IControl, IFrameworkElement, IUIElement, IDependencyObject

Constructors

| Improve this Doc View Source

DataPager()

Initializes a new instance of the DataPager class.

Declaration
public DataPager()

Fields

| Improve this Doc View Source

AutoEllipsisProperty

Identifies the AutoEllipsis dependency property.

Declaration
public static readonly DependencyProperty AutoEllipsisProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

CanChangePageProperty

Identifies the CanChangePage dependency property.

Declaration
public static readonly DependencyProperty CanChangePageProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

CanMoveToFirstPageProperty

Identifies the CanMoveToFirstPage dependency property.

Declaration
public static readonly DependencyProperty CanMoveToFirstPageProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

CanMoveToLastPageProperty

Identifies the CanMoveToLastPage dependency property.

Declaration
public static readonly DependencyProperty CanMoveToLastPageProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

CanMoveToNextPageProperty

Identifies the CanMoveToNextPage dependency property.

Declaration
public static readonly DependencyProperty CanMoveToNextPageProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

CanMoveToPreviousPageProperty

Identifies the CanMoveToPreviousPage dependency property.

Declaration
public static readonly DependencyProperty CanMoveToPreviousPageProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

DisplayModeProperty

Identifies the DisplayMode dependency property.

Declaration
public static readonly DependencyProperty DisplayModeProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

IsTotalItemCountFixedProperty

Identifies the IsTotalItemCountFixed dependency property.

Declaration
public static readonly DependencyProperty IsTotalItemCountFixedProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ItemCountProperty

Identifies the ItemCount dependency property.

Declaration
public static readonly DependencyProperty ItemCountProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

NumericButtonCountProperty

Identifies the NumericButtonCount dependency property.

Declaration
public static readonly DependencyProperty NumericButtonCountProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

NumericButtonStyleProperty

Identifies the NumericButtonStyle dependency property.

Declaration
public static readonly DependencyProperty NumericButtonStyleProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

PageCountProperty

Identifies the PageCount dependency property.

Declaration
public static readonly DependencyProperty PageCountProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

PageIndexProperty

Identifies the PageIndex dependency property.

Declaration
public static readonly DependencyProperty PageIndexProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

PageSizeProperty

Identifies the PageSize dependency property.

Declaration
public static readonly DependencyProperty PageSizeProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

SourceProperty

Identifies the Source dependency property.

Declaration
public static readonly DependencyProperty SourceProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

AutoEllipsis

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

ItemCount

Gets the current number of known items in the IPagedCollectionView .

Declaration
public int ItemCount { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

PageCount

Gets the current number of known pages in the IPagedCollectionView .

Declaration
public int PageCount { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

PageIndex

Gets or sets the current PageIndex in the IPagedCollectionView .

Declaration
public int PageIndex { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

PageSize

Gets or sets the current PageSize in the IPagedCollectionView .

Declaration
public int PageSize { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Source

Gets or sets the IPagedCollectionView .

Declaration
public IEnumerable Source { get; set; }
Property Value
Type Description
System.Collections.IEnumerable

Methods

| Improve this Doc View Source

OnApplyTemplate()

Applies the control's template, retrieves the elements within it, and sets up events.

Declaration
public override void OnApplyTemplate()
Overrides
Control.OnApplyTemplate()
| Improve this Doc View Source

OnCreateAutomationPeer()

Creates an AutomationPeer (OnCreateAutomationPeer())

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type Description
AutomationPeer

Automation Peer for this DataPager control

Overrides
UIElement.OnCreateAutomationPeer()

Events

| Improve this Doc View Source

PageIndexChanged

EventHandler for when PageIndex has changed.

Declaration
public event EventHandler<EventArgs> PageIndexChanged
Event Type
Type Description
System.EventHandler<System.EventArgs>
| Improve this Doc View Source

PageIndexChanging

EventHandler for when PageIndex is changing.

Declaration
public event EventHandler<CancelEventArgs> PageIndexChanging
Event Type
Type Description
System.EventHandler<System.ComponentModel.CancelEventArgs>

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
UIElementExtendedRoutedEventExtensions.AddHandler(UIElement, ExtendedRoutedEvent, Delegate, Boolean)
UIElementExtendedRoutedEventExtensions.RemoveHandler(UIElement, ExtendedRoutedEvent, Delegate)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
VisualTreeExtensions.GetBoundsRelativeTo(FrameworkElement, UIElement)
VisualTreeExtensions.InvokeOnLayoutUpdated(FrameworkElement, Action)
  • Improve this Doc
  • View Source