{"id":23061628,"url":"https://github.com/syncfusionexamples/xamarin-forms-switch-control","last_synced_at":"2026-04-27T22:32:16.037Z","repository":{"id":98096408,"uuid":"194210560","full_name":"SyncfusionExamples/xamarin-forms-switch-control","owner":"SyncfusionExamples","description":"This sample explains how to implemen a SfSwitch control in Xamarin, covering basic usage, customization options, and advanced configurations.","archived":false,"fork":false,"pushed_at":"2024-03-26T04:39:38.000Z","size":582,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T07:18:57.103Z","etag":null,"topics":["android","switch","switch-control","xamarin-forms"],"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":"2019-06-28T05:16:38.000Z","updated_at":"2024-03-28T11:11:36.000Z","dependencies_parsed_at":"2023-04-28T23:35:50.932Z","dependency_job_id":"c348e8ab-26cf-430b-9f24-55069020c60e","html_url":"https://github.com/SyncfusionExamples/xamarin-forms-switch-control","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SyncfusionExamples/xamarin-forms-switch-control","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-forms-switch-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-forms-switch-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-forms-switch-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-forms-switch-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SyncfusionExamples","download_url":"https://codeload.github.com/SyncfusionExamples/xamarin-forms-switch-control/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SyncfusionExamples%2Fxamarin-forms-switch-control/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32358509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["android","switch","switch-control","xamarin-forms"],"created_at":"2024-12-16T03:17:58.355Z","updated_at":"2026-04-27T22:32:16.022Z","avatar_url":"https://github.com/SyncfusionExamples.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Xamarin Forms Switch control\nThis repository contains the demo for the usage of Syncfusion Xamarin.Forms Switch control. This Switch control provides support to 3 different states, on, off and intermediate.\n\n## Getting Started with Xamarin Switch (SfSwitch)\nThis section explains you the steps to add the SfSwitch control with basic functionalities in Xamarin.Forms.\n\n## Assembly deployment\nAfter installing Essential Studio for Xamarin, you can find all the required assemblies in the installation folders, {Syncfusion Essential Studio Installed location} \\Essential Studio\\{Version #}\\Xamarin\\lib.\n\n## Adding SfSwitch reference\nYou can add SfSwitch reference using one of the below methods.\n\n### Method 1: Adding SfSwitch reference from nuget.org\n\nSyncfusion Xamarin components are available in nuget.org. To add SfSwitch to your project, open the NuGet package manager in Visual Studio, search for Syncfusion.Xamarin.Core, and then install it.\n\n### Method 2: Adding SfSwitch reference from toolbox\n\nSyncfusion provides Xamarin Toolbox. Using this toolbox, you can drag the SfSwitch control to the XAML page. It will automatically install the required NuGet packages and add the namespace to the page. To install Syncfusion Xamarin Toolbox, refer to Toolbox.\n\n### Method 3: Adding SfSwitch assemblies manually from the installed location\n\nIf you prefer to manually reference the assemblies instead referencing from NuGet, add the following assemblies in respective projects.\n\nLocation: {Installed location}/{version}/Xamarin/lib\n\n## Initializing SfSwitch\nImport the Button namespace as shown below in your respective Page,\n\n**[XAML]**\n```\nxmlns:syncfusion=\"clr-namespace:Syncfusion.XForms.Buttons;assembly=Syncfusion.Buttons.XForms\"\n```\nThen initialize the switch control as shown below using the code example.\n**[XAML]**\n```\n\u003csyncfusion:SfSwitch /\u003e\n```\n## How to run this application?\n\nTo run this application, you need to first clone the xamarin-forms-switch-control 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.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncfusionexamples%2Fxamarin-forms-switch-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyncfusionexamples%2Fxamarin-forms-switch-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyncfusionexamples%2Fxamarin-forms-switch-control/lists"}