[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Expand]Charts Suite
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Collapse]Data Editors
    Included Components
   [Expand]Implementation Details
   [Expand]Getting Started
   [Collapse]Editor Types
     BarCodeEdit
     BrushEdit
     ButtonEdit
     Calculator
     CheckEdit
     ColorEdit
     ComboBoxEdit
     DateNavigator
     DateEdit
     DropDownButton
     FlyoutControl
     FontEdit
     HyperlinkEdit
     ImageEdit
     ListBoxEdit
     LookUpEdit
     MemoEdit
     PasswordBoxEdit
     PopupBrushEdit
     PopupCalcEdit
     PopupColorEdit
     PopupImageEdit
     ProgressBarEdit
     RangeControl
     RatingEdit
     SparklineEdit
     SpinEdit
     SimpleButton
     SplitButton
     TextEdit
     ToggleSwitchEdit
     Token Editors
     TrackBarEdit
   [Expand]Common Features
   [Expand]Range Control
   [Expand]Visual Elements
   [Expand]End-User Capabilities
   [Expand]Examples
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

ToggleSwitchEdit

Expanded Overview

The ToggleSwitchEdit control represents a switch that can be toggled between states. It contains a toggle switch and a content area. In addition to the standard True/False states, ToggleSwitchEdit supports the Indeterminate state.

The ToggleSwitchEdit control offers the following features.

  • Optional indeterminate state

    Setting the ToggleSwitchEdit.IsThreeState property to true allows the ToggleSwitchEdit control to hold a null value. This is called the Indeterminate state.

  • Multiple content positions

    The content area indicates the current state of the toggle switch editor. To specify the required content position, use the ToggleSwitchEdit.ContentPlacement property.

  • Optional toggle flip animation

    Set the ToggleSwitchEdit.EnableAnimation property to false to disable toggle flip animation.

  • Optimized for in-place editing

    The ToggleSwitchEdit can be used standalone or as an in-place editor nested in a container control. The ToggleSwitchEdit class implements the in-place editing functionality. See In-place Editors to learn more.

Expanded Standalone ToggleSwitchEdit

To add a standalone ToggleSwitchEdit to a Window, drag it from the Toolbox.

The following sample demonstrates how to create a ToggleSwitchEdit using XAML markup.

Expanded In-place ToggleSwitchEdit

To embed a ToggleSwitchEdit into a container control, use the ToggleSwitchEditSettings class.

The following sample demonstrates how to embed a ToggleSwitchEdit into a GridControl column.

Is this topic helpful?​​​​​​​