When there is too much data, use paging to decompose the data.
1 2 3 4 5 6 7 8 9
[TemplatePart(Name = ElementButtonLeft, Type = typeof(Button))] [TemplatePart(Name = ElementButtonRight, Type = typeof(Button))] [TemplatePart(Name = ElementButtonFirst, Type = typeof(RadioButton))] [TemplatePart(Name = ElementMoreLeft, Type = typeof(FrameworkElement))] [TemplatePart(Name = ElementPanelMain, Type = typeof(Panel))] [TemplatePart(Name = ElementMoreRight, Type = typeof(FrameworkElement))] [TemplatePart(Name = ElementButtonLast, Type = typeof(RadioButton))] [TemplatePart(Name = ElementButtonLast, Type = typeof(NumericUpDown))] publicclassPagination : Control
Attributes
Property
Description
Default Value
Remarks
MaxPageCount
Maximum number of pages
1
DataCountPerPage
The amount of data per page
20
PageIndex
Page Number
1
MaxPageInterval
The maximum distance between the currently selected button and the left and right direction buttons (4 means 4 buttons apart, if it exceeds, it will be indicated by an ellipsis)