Switch controls in Xamarin.Forms applications can take two states: On or Off. Use this action to specify the desired state of the control.
The action compares the current state of the control and the desired state specified via the input parameter: if the state mismatches, the action performs a single touch over the control; otherwise, it performs no action.
|To obtain the current state of the control, use its
|A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
The method is applied to the following object:
The method has the following parameter:
Specifies the state to be set.
|True or "On"
|The control is on.
|False or "Off"
|The control is off.