We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The Xamarin.Forms Switch allows you to turn an item on and off, and provides an optional indeterminate state. It supports VSM, a busy state, and gradient.


Visual types

The Xamarin.Forms Switch provides three built-in visual types. These visual types save time when customizing a switch based on different devices in maintaining the same visual on all three kinds of devices (Android, iOS, and UWP).

Xamarin.Forms Switch with material visual type.

Xamarin.Forms Switch with Cupertino visual type.

Xamarin.Forms Switch with fluent visual type.


Indeterminate state

Apart from the usual on and off states, there is also a state called indeterminate.

Xamarin.Forms Switch with indeterminate state.


Visual State Manager

Use the Visual State Manager to customize Xamarin.Forms Switch’s thumb and track based on switch states. Its supported visual states are on, off, indeterminate, and disabled.

Xamarin.Forms Switch with Visual State Manager state.


Busy indicator

Switches with busy indicator support are the most common scenario in service-based apps. The Xamarin.Forms Switch can turn on or off items based on validation.

Xamarin.Forms Switch with busy indicator.


Orientation

The Xamarin.Forms Switch supports vertical orientation. The Xamarin.Forms Switch can be integrated when the app requires an interface to set values at high, low, and medium.

Xamarin.Forms Switch with horizontal and vertical orientation.


Gradients

The highly customizable Xamarin.Forms Switch control allows you to customize its background with gradients.

Xamarin.Forms Switch with gradients.


Images

Customize the Xamarin.Forms Switch control with images to illustrate the use case of the switch action.

Xamarin.Forms Switch with images.


RTL support

The Xamarin.Forms Switch has been designed with Flow Direction compatibility.

Xamarin.Forms Switch in RTL layout.


Xamarin.Forms Switch Code Example

Easily get started with the Xamarin.Forms Switch using a few simple lines of XAML and, C# code example as demonstrated below. Also explore our Xamarin.Forms Switch Example that shows you how to render and configure the Switch for Xamarin.Forms.

xmlns:syncfusion="clr-namespace:Syncfusion.XForms.Buttons;assembly=Syncfusion.Buttons.XForms"
SfSwitch sfSwitch = new SfSwitch();



155+ XAMARIN UI CONTROLS

ALL CONTROLS
  • Xamarin.Forms
  • Xamarin.Android
  • Xamarin.iOS
The most downloaded control (based on the nuget.org download count).

Frequently Asked Questions

We do not sell the Xamarin Switch separately. It is only available for purchase as part of the Syncfusion Xamarin suite, which contains over 155 Xamarin components, including the Switch. A single developer license for the Syncfusion Essential Studio for Xamarin suite costs $995.00 USD, including one year of support and updates. On top of this, we might be able to offer additional discounts based on currently active promotions. Please contact our sales team today to see if you qualify for any additional discounts.

You can find our Xamarin Switch demo here.

No, our 155+ Xamarin components, including Switch, are not sold individually, only as a single package. However, we have competitively priced the product so it only costs a little bit more than what some other vendors charge for their Switch alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 155+ Xamarin components for a flat fee of $995/developer. On top of this, we might be able to offer additional discounts based on currently active promotions. Please contact our sales team today to see if you qualify for any additional discounts.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.

A good place to start would be our comprehensive getting started documentation.

Read independent,
authenticated reviews
on G2

Download Now Pricing

What do our customers say about us?

double quotes

A creator of online tutorials for Microsoft technologies, your controls helped to provide a rich user experience. I wanted a look and feel like a Windows Store app and the Tiles are useful for that.
 Microsoft MVP

Microsoft MVP

double quotes

We're using the file formats and Windows/JavaScript list controls a lot. They're fast, easy to use, and the documentation is good and contains examples. Tickets with questions or suggestions were answered within a day, so we're happy to use the Syncfusion libraries.
Daniel Persidok

Daniel Persidok

wpd onshore GmbH & Co. KG

Transform your applications today by downloading our free evaluation version Download Free Trial

Syncfusion Xamarin.Forms Resources

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile