Skip to content

solo-developer/Xamarin.Views.Pagination

Repository files navigation

Xam.Views.Pagination

Web-like pagination component for Xamarin Forms

Usage

  1. Import namespace in your xaml file

    xmlns:customViews="clr-namespace:Xam.Plugins.Pagination;assembly=Xam.Plugins.Pagination"   
    
  2. 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

Working Screenshot
alt text

About

Reusable pagination ContentView for Xamarin Forms

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages