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

Properties

Usages

Switch(model.Toggled, ToggledMsg)
    .thumbColor(Color.Red.ToFabColor(), dark = Color.Blue.ToFabColor())
    .colorOn(Color.Red.ToFabColor(), dark = Color.Blue.ToFabColor()) 

Get access to the underlying Xamarin.Forms.Switch

let switchRef = ViewRef<Switch>()

Switch(model.Toggled, ToggledMsg) 
    .reference(switchRef) 

Last updated