The ASP.NET Core Toggle Switch Button control is a custom HTML5 input-type checkbox control that allows you to perform a toggle (on/off) action between checked and unchecked states. It supports different sizes, labels, label positions, and UI customization.
A single switch consists of a toggle state that can be checked and unchecked. To prevent the toggling of a switch, you can disable it.
You can use default or small switch sizes.
The ASP.NET Core Toggle Switch Button control appearance (bar and handle) has support for complete customization. A switch can contain text to represent the checked and unchecked states (on-off). Customize it to make the look and feel like:
Seamlessly supports HTML forms, template-driven forms (Angular), and reactive forms.
The Toggle Switch Button supports right-to-left (RTL) text direction for users working with RTL languages like Hebrew, Arabic, or Persian.
The ASP.NET Core Toggle Switch Button supports several built-in themes: Material, Bootstrap, Fabric (Office 365), Tailwind CSS, and high contrast. Users can customize any one of these built-in themes or create new themes to achieve their own desired look and feel either by simply overriding SASS variables or using our Theme Studio application.
Toggle Switch Button is also available in Blazor, Angular, React, Vue, and JavaScript frameworks. Check out the different Toggle Switch Button platforms from the links below,
Easily get started with ASP.NET Core Toggle Switch Button using a few simple lines of HTML and TS code example as demonstrated below. Also explore our ASP.NET Core Toggle Switch Button Example that shows you how to render and configure the ASP.NET Core Toggle Switch Button.
<div>
<label for="checked" style="padding: 10px 70px 10px 0"> USB Tethering </label>
<ejs-switch id="checked" checked="true"></ejs-switch>
</div>
using Syncfusion.Windows.Forms.Tools;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
ToggleButton toggleButton = new ToggleButton();
toggleButton.Location = new System.Drawing.Point(283, 178);
toggleButton.Size = new System.Drawing.Size(100, 40);
this.Controls.Add(toggleButton);
}
}
}
You can find our ASP.NET Core Toggle Switch Button demo, which demonstrates how to render and configure the Toggle Switch Button.
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, 5 or fewer developers, and 10 or fewer total employees.
A good place to start would be our comprehensive getting started documentation.
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.