Switch
Inheritance: Element -> NavigableElement -> VisualElement -> View Xamarin.Forms documentation: Switch API / Guide
For details on how the control actually works, please refer to the Xamarin.Forms documentation.
Constructors
Constructors
Description
Switch(isToggled: bool, onToggled: bool -> ‘msg)
Define a Switch widget with its toggled state
Properties
Properties
Description
thumbColor(light: FabColor, ?dark: FabColor)
Sets the thumb color depending if light or dark mode
colorOn(light: FabColor, ?dark: FabColor)
Sets the color when switch is toggled on
reference(value: ViewRef<Switch>)
Sets a ViewRef
instance to retrieve the Xamarin.Forms.Switch
instance associated to this widget
Usages
Get access to the underlying Xamarin.Forms.Switch
Last updated