Adding selection controls (HTML)
[ This article is for Windows 8.x and Windows Phone 8.x developers writing Windows Runtime apps. If you’re developing for Windows 10, see the latest documentation ]
Selection controls let users select between multiple options.
In this section
Topic | Description |
---|---|
A checkbox is a control that the user can check or uncheck by tapping, clicking, or pressing the space bar on the keyboard. Most checkbox controls have two states, checked and unchecked, but some checkbox controls support a third, indeterminate state. |
|
Use DatePickers or TimePickers when you want to let users select dates or times. (Windows only) |
|
Use Select controls to let users select from a pre-defined list of options presented like a text control. Select controls are similar to drop-downs or combo boxes. |
|
Use sliders to let users pick a value within a continuous range. |
|
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. |