{"id":23061642,"url":"https://github.com/syncfusionexamples/xamarin-forms-sftabview","last_synced_at":"2026-05-18T02:31:08.553Z","repository":{"id":98096396,"uuid":"362021053","full_name":"SyncfusionExamples/xamarin-forms-sftabview","owner":"SyncfusionExamples","description":"This repository contains a sample on How to get started with the Syncfusion Xamarin.Forms TabView (SfTabView).","archived":false,"fork":false,"pushed_at":"2024-03-22T10:46:15.000Z","size":592,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-09-01T05:06:33.967Z","etag":null,"topics":["tab-view","tabview","xamarin","xamarin-forms","xamarin-tabview"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SyncfusionExamples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-27T07:31:20.000Z","updated_at":"2024-03-28T11:10:18.000Z","dependencies_parsed_at":"2023-10-16T23:48:23.611Z","dependency_job_id":"50b05006-d838-4922-90a4-1c51f0e63fd3","html_url":"https://github.com/SyncfusionExamples/xamarin-forms-sftabview","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SyncfusionExamples/xamarin-forms-sftabview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-forms-sftabview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-forms-sftabview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-forms-sftabview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-forms-sftabview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SyncfusionExamples","download_url":"https://codeload.github.com/SyncfusionExamples/xamarin-forms-sftabview/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-forms-sftabview/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162595,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["tab-view","tabview","xamarin","xamarin-forms","xamarin-tabview"],"created_at":"2024-12-16T03:18:00.356Z","updated_at":"2026-05-18T02:31:08.538Z","avatar_url":"https://github.com/SyncfusionExamples.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Xamarin Tabbed View (SfTabView) \nThis section provides an overview for working with the Xamarin.Forms Tabbed View control. Walk through the entire process of creating a real-world application with the tab view.\n## Creating the project\nCreate a new BlankApp (Xamarin.Forms.Portable) application in Xamarin Studio or Visual Studio for Xamarin.Forms.\n\n### Adding SfTabView in Xamarin.Forms\nAdd the required assembly references to the PCL and renderer projects as discussed in the Assembly deployment section.\n\nImport the control namespace as shown in the following code.\n\n**[XAML]**\n```\nxmlns:tabView=\"clr-namespace:Syncfusion.XForms.TabView;assembly=Syncfusion.SfTabView.XForms\"\n```\n**[C#]**\n```\nusing Syncfusion.XForms.TabView;\n```\nSet the control to content in ContentPage.\n\n**[XAML]**\n```\n \u003cContentPage.Content\u003e \n        \u003ctabView:SfTabView/\u003e \n \u003c/ContentPage.Content\u003e \n```\n**[C#]**\n```\npublic MainPage()   \n{   \n    InitializeComponent();       \n    tabView = new SfTabView();   \n    this.Content = tabView;  \n}  \n```\n### Adding ListView in SfTabView\n\nCreate a view model class with the ContactsInfo collection property, which is initialized with required number of data objects.\n\n**[C#]**\n```\npublic class ContactInfo\n{\n\tpublic string Name { get; set; }\n\tpublic long Number { get; set; }\n}\npublic class ContactsViewModel : INotifyPropertyChanged\n{\n\tprivate ObservableCollection\u003cContactInfo\u003e contactList;\n\tpublic event PropertyChangedEventHandler PropertyChanged;\n\tpublic ObservableCollection\u003cContactInfo\u003e ContactList\n\t{\n\t\tget { return contactList; }\n\t\tset { contactList = value; }\n\t}\n\tpublic ContactsViewModel()\n\t{\n\tContactList = new ObservableCollection\u003cContactInfo\u003e();\n\tContactList.Add(new ContactInfo{Name = \"Aaron\",Number = 7363750});\n\tContactList.Add(new ContactInfo { Name = \"Adam\", Number = 7323250 });\n\tContactList.Add(new ContactInfo { Name = \"Adrian\", Number = 7239121 });\n\tContactList.Add(new ContactInfo { Name = \"Alwin\", Number = 2329823 });\n\tContactList.Add(new ContactInfo { Name = \"Alex\", Number = 8013481 });\n\tContactList.Add(new ContactInfo { Name = \"Alexander\", Number = 7872329 });\n\tContactList.Add(new ContactInfo { Name = \"Barry\", Number = 7317750 });\n\t}\n}\n```\n\n### Binding data to ListView\nBind the items source of the ListView, and set the required appearance in its ItemTemplate property in which the list view can be hosted within the content region of tab item.\n\n**[XAML]**\n```\n   \u003cContentPage.Content\u003e\n        \u003ctabView:SfTabView BackgroundColor=\"#f6f6f6\" x:Name=\"tabView\"\u003e\n            \u003ctabView:SfTabItem Title=\"{Binding Title1}\"\u003e\n                \u003ctabView:SfTabItem.Content\u003e\n                    \u003cGrid BackgroundColor=\"White\" x:Name=\"AllContactsGrid\" \u003e\n                        \u003cListView x:Name=\"ContactListView\" \n                                  ItemsSource=\"{Binding ContactList}\"\n                                  RowHeight=\"75\"\u003e\n                            \u003cListView.BindingContext\u003e\n                                \u003clocal:ContactsViewModel /\u003e\n                            \u003c/ListView.BindingContext\u003e\n                            \u003cListView.ItemTemplate\u003e\n                                \u003cDataTemplate\u003e\n                                    \u003cViewCell\u003e\n                                        \u003cStackLayout Orientation=\"Vertical\" Margin=\"30,0,0,0\"\u003e\n                                            \u003cLabel \n                                                Text=\"{Binding Name}\"\n                                                FontSize=\"24\"  /\u003e\n                                            \u003cLabel \n                                                Text=\"{Binding Number}\" \n                                                FontSize=\"20\" \n                                                TextColor=\"LightSlateGray\" /\u003e\n                                        \u003c/StackLayout\u003e\n                                    \u003c/ViewCell\u003e\n                                \u003c/DataTemplate\u003e\n                            \u003c/ListView.ItemTemplate\u003e\n                        \u003c/ListView\u003e\n                    \u003c/Grid\u003e\n                \u003c/tabView:SfTabItem.Content\u003e\n            \u003c/tabView:SfTabItem\u003e\n            \u003ctabView:SfTabItem Title=\"Favorites\"\u003e\n                \u003ctabView:SfTabItem.Content\u003e\n                    \u003cGrid BackgroundColor=\"Green\" x:Name=\"FavouritesGrid\" /\u003e\n                \u003c/tabView:SfTabItem.Content\u003e\n            \u003c/tabView:SfTabItem\u003e\n            \u003ctabView:SfTabItem Title=\"Contacts\"\u003e\n                \u003ctabView:SfTabItem.Content\u003e\n                    \u003cGrid BackgroundColor=\"Blue\" x:Name=\"ContactsGrid\" /\u003e\n                \u003c/tabView:SfTabItem.Content\u003e\n            \u003c/tabView:SfTabItem\u003e\n        \u003c/tabView:SfTabView\u003e\n    \u003c/ContentPage.Content\u003e\n```\n## How to run this application?\n\nTo run this application, you need to first clone the xamarin-forms-sftabview repository and then open it in Visual Studio 2022. Now, simply build and run your project to view the output.\n\n## \u003ca name=\"troubleshooting\"\u003e\u003c/a\u003eTroubleshooting ##\n### Path too long exception\nIf you are facing path too long exception when building this example project, close Visual Studio and rename the repository to short and build the project.\n\n## License\n\nSyncfusion has no liability for any damage or consequence that may arise by using or viewing the samples. The samples are for demonstrative purposes, and if you choose to use or access the samples, you agree to not hold Syncfusion liable, in any form, for any damage that is related to use, for accessing, or viewing the samples. By accessing, viewing, or seeing the samples, you acknowledge and agree Syncfusion’s samples will not allow you seek injunctive relief in any form for any claim related to the sample. If you do not agree to this, do not view, access, utilize, or otherwise do anything with Syncfusion’s samples.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncfusionexamples%2Fxamarin-forms-sftabview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyncfusionexamples%2Fxamarin-forms-sftabview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncfusionexamples%2Fxamarin-forms-sftabview/lists"}