Pagination
Previous / next and page numbers, with ellipses for long ranges.
Installation
bash
shellui-native add pagination
Platforms: MAUI · Avalonia. Also installs icon.
Usage
Basic
<ui:Pagination Page="5" TotalPages="20" PageChanged="OnPageChanged" /><ui:Pagination Page="5" TotalPages="20" PageChanged="OnPageChanged" />Not available on yet
MAUI and Avalonia
ShowLabels(the "Previous" / "Next" text) is on by default; MAUI turns it off on phones.- On Avalonia every page and arrow is a tab stop that activates with Enter or Space.
API
| Property | Type | Default | Description |
|---|---|---|---|
Page |
int |
1 |
Current page, starting at 1. Two-way bindable. |
TotalPages |
int |
1 |
Number of pages. |
SiblingCount |
int |
1 |
Pages shown on each side of the current page. |
ShowLabels |
bool |
true (false on phones) (MAUI) · true (Avalonia) |
"Previous" / "Next" text next to the chevrons. Off by default on phones to fit the width. |
| Event | Arguments | Description |
|---|---|---|
PageChanged |
int |
User input only: setting Page from code or a binding doesn't raise it. |