Web-like pagination component for Xamarin Forms
Usage
-
Import namespace in your xaml file
xmlns:customViews="clr-namespace:Xam.Plugins.Pagination;assembly=Xam.Plugins.Pagination"
-
Use CustomControl wherever required
<customViews:PaginationView CurrentPage="10" PageCount="15" OnPaginated="{Binding Source={x:Reference Page}, Path=BindingContext.OnPaginatedCommand}" IconBackgroundColor="Red" DisabledColor="Gray" NumberNavigationEnabled="True"/>
Available Bindable Properties
CurrentPage
Takes integer value and used to set page number initially.
OnPaginated
Of Type Command. It is a callback function that gets trigger once pagination is performed
IconBackgroundColor
Set color of navigation button in pagination component
DisabledColor
Sets color of button when they are disabled
NumberNavigationEnabled
Boolean value that represents whether to navigate using page numbers