Language: HTML | XAML

Adding toggle switches (HTML)

Applies to Windows and Windows Phone

Use Toggle switches to present users with exactly two mutually exclusive options (like on/off), where choosing an option results in an immediate commit. A toggle switch should have a single label.

The toggle switch mimics a physical switch that allows users to turn on or off things. The control has two fixed states: "ON" or "OFF".

Toggle controls

Users can slide or tap to change its states. When users slide their finger past the snap point, the toggle switches states.

Snap points of a Toggle control



© 2014 Microsoft