Home

Awesome

TabStrip for Xamarin.Forms

Tab Strip control for Xamarin.Forms

Screenshots

iOSAndroidUWP
uwpuwpuwp

Setup

Build

Platform Support

TabStrip is available for use in Xamarin.Forms only targetting the following supported platforms.

PlatformSupportedVersion
Xamarin.AndroidYesAPI 15 +
Xamarin.iOSYesiOS 10 +
Xamarin 10 UWPYes16299 +
macOSNo
linuxNo
tvOSNo
watchOSNo

Usage

UWP (Known Issue)

Add CarouselView.FormsPlugin as a nuget reference otherwise it will not work

iOS, Droid and UWP

Initialize the renderers in your iOS and Android projects

Xamarin.Forms.Init();
TabStripRenderer.Init();

XAML:

Add the namespace in the xmlns:

xmlns:plugin="clr-namespace:TabStrip.FormsPlugin.Abstractions;assembly=TabStrip.FormsPlugin.Abstractions"

Add the control:

<plugin:TabStripControl Position="{Binding CurrentPosition}"
                        ItemsSource="{Binding Views}" />

Add the following code to your BindingContext. The ItemsSource property needs to be mapped to an IEnumerable<TabModel> where TabModel is provided in the TabStrip.FormsPlugin.Abstractions namespace.

BindingContext = new 
{
	Views = new ObservableCollection<TabModel>(new [] 
	{
		new TabModel
        {
            Header = new Tuple<View, object>(new HeaderView(), new { Title = "Tab 1" }),
            View = new Tuple<View, object>(new HelloView(), new HelloPageModel())
        },
        new TabModel
        {
            Header = new Tuple<View, object>(new HeaderView(), new { Title = "Tab 2" }),
            View = new Tuple<View, object>(new HelloView(), new HelloPageModel())
        }

	});
};

Bindable Properties

PropertyDescriptionDefault Value
PositionGets or Sets current tab position of the tab strip.0
ItemsSourceGets or Sets the IEnumerable<TabModel> where the TabModel defines the Tab Name and the View/ViewModel relationship for each Tabnull
ShowArrowsGets or Sets the bool value that determines if navigation arrows will appear on top of the content areafakse
LeftArrowGets or Sets the ImageSource for the LeftArrow which is displayed when the tab can navigate leftEmbedded Left Arrow Image
RightArrowGets or Sets the ImageSource for the RightArrow which is displayed when the tab can navigate rightEmbedded Right Arrow Image

Roadmap

Minimal Viable Product

Windows Support

macOS Support

linux Support

Native Support

Created By: @Andrew_Hoefling

History

Xamarin Dependencies

Thanks to other plugin creators to make this plugin possible

License

The MIT License (MIT) see License File