Skip to content

SwitchView

Ieuan Walker edited this page Apr 5, 2023 · 5 revisions

SwitchView is essentially a blank ContentView that gives you a blank canvas to design any type of switch you want. It gives you the standard properties/ events and commands of a switch. It has been modified on an OS level to behave as a native switch from an accessibility POV.

The best place to learn how to create a new switch is by looking at the examples.

Properties

Property What it does Extra info
IsToggled A bool to indicate the toggled status of the switch Default value is false

Events

Event What it does
Toggled Triggered when the switch is toggled

Commands

Command What it does
ToggledCommand Triggered when the switch is toggled

Examples

Coming soon

Clone this wiki locally