Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chaosifier/TabView
TabView control for Xamarin.Forms.
https://github.com/chaosifier/TabView
Last synced: 29 days ago
JSON representation
TabView control for Xamarin.Forms.
- Host: GitHub
- URL: https://github.com/chaosifier/TabView
- Owner: chaosifier
- License: mit
- Created: 2018-02-12T05:20:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-12-28T06:57:44.000Z (almost 3 years ago)
- Last Synced: 2024-10-08T23:37:00.033Z (2 months ago)
- Language: C#
- Homepage:
- Size: 902 KB
- Stars: 124
- Watchers: 6
- Forks: 32
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xamarin-forms - TabView ★124
README
# TabView
TabView control for Xamarin.Forms.
Requires CarouselView plugin.Also available on NuGet : https://www.nuget.org/packages/Xam.Plugin.TabView [![NuGet](https://img.shields.io/badge/NUGET-1.1.1-green.svg)](https://www.nuget.org/packages/Xam.Plugin.TabView)
Make sure to initialize the CarouselView plugin first before using TabView.
To do so, in your iOS and Android projects call:```
Xamarin.Forms.Init();
CarouselViewRenderer.Init();
```And in your UWP project call:
```
List assembliesToInclude = new List();
assembliesToInclude.Add(typeof(CarouselViewRenderer).GetTypeInfo().Assembly);
Xamarin.Forms.Forms.Init(e, assembliesToInclude);
```Bindable properties:
- HeaderBackgroundColor
- HeaderTabTextColor
- ContentHeight
- HeaderSelectionUnderlineColor
- HeaderSelectionUnderlineThickness
- HeaderSelectionUnderlineWidth
- HeaderTabTextFontSize
- HeaderTabTextFontFamily
- HeaderTabTextFontAttributes
- IsSwipeEnabled
- TabHeaderSpacing
- ItemSource (Collection of TabItem)
- TemplatedItemSource (Collection of ITabViewControlTabItem)
- ItemTemplate (works along with TemplatedItemSource)
- TabHeaderItemTemplate (works along with TemplatedItemSource)
- SelectedTabIndex
- TabSizeOption (Sets tab header sizing strategy. Accepts GridLength, namely : Auto, *, some fix width value)Note :
- ItemSource and TemplatedItemSource cannot be used together.
- TabHeaderItemTemplate only works along with TemplatedItemSource.
- TemplatedItemSource items must implement ITabViewControlTabItem
- ITabViewControlTabItem interface members :
- TabViewControlTabItemFocus() : called when tab receives focus, could be used for lazy loading of data in each tab.
- TabViewControlTabItemIconSource : icon to set for the tab
- TabViewControlTabItemTitle : title to set for the tabEvents:
- OnPositionChanging
- OnPositionChangedFunctions:
- SetPosition
- SelectNext
- SelectPrevious
- SelectLast
- AddTab
- RemoveTabScreenshots: