Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
SGTabbedPager
SGTabbedPagerMvx
Sample
SampleMvx
tools
.gitignore
LICENSE
README.md
SGTabbedPager.nuspec
SGTabbedPager.sln
SGTabbedPagerMvx.nuspec
appveyor.yml
build.cake
build.ps1
build.sh
releasenotes.md

README.md

SGTabbedPager

Build status NuGet NuGet

Port of SGViewPager for Xamarin.iOS

Installing

Grab the latest version from NuGet

> PM Install-Package SGTabbedPager

or for MvvmCross

> PM Install-Package SGTabbedPagerMvx

Usage

Make your UIVievController inherit from SGTabbedPager or if you are using MvvmCross SGTabbedPager<TViewModel>. Implement the ISGTabbedPagerDatasource interface to provide pages to the pager.

Make sure you set the DataSource on your ViewControll to your ISGTabbedPagerDatasource implementation.

Use TabColor to set the color of the indicator on each tab item.

See the Sample for usage.

gif

Listening to page changes

Use the event OnShowViewController to get the index of the selected UIViewController.

OnShowViewController += (s, e) => Console.WriteLine($"Showing Page {e}");

Position tabbed pager bar on bottom

Use the ShowOnBottom proprety to show the tabbed pager bar on the bottom. This will adjust the Constraints to position it on the bottom of the page.

License

See the License file.