Switch
A binary on/off toggle.
Properties
IsOn
Whether the switch is on.
OnColor
The fill color while on, or null for the inherited tint.
Type: Color?
ThumbColor
The thumb color, or null for the system default.
Type: Color?
Toggled
Invoked with the new value whenever the user toggles the switch.