Switches toggle the state of a single item on or off.
View Material Design documentation
<material3:MaterialSwitch
Text="Bluetooth *"
IsToggled="False"
TextColor="#0d1a26"
SupportingTextColor="Red"
SupportingText="Bluetooth is required"/>
This property is to set the background color when the switch toggled is false.
This property is to set the disabled background color when the switch toggled is false.
This property is to set the background color when the switch toggled is true.
This property is to set the disabled background color when the switch toggled is true.
This property is to set the border width. Default value is 2.
This property is to set the border color when the switch toggled is false.
This property is to set the disabled border color when the switch toggled is false.
This property is to set the border color when the switch toggled is true.
This property is to set the disabled border color when the switch toggled is true.
This property is to set if the control is toggled or not. By default is False.
This property is to set a command when the switch is toggled.
This property is to set the thumb color when the switch toggled is false.
This property is to set the disabled thumb color when the switch toggled is false.
This property is to set the thumb color when the switch toggled is true.
This property is to set the disabled thumb color when the switch toggled is true.
This property is to set the thumb icon when the switch toggled is true.
This property is to set the thumb icon (SVG) when the switch toggled is true.
This property is to set the thumb icon when the switch toggled is false. To show this icon, you must set SelectedIcon
This property is to set the thumb icon (SVG) when the switch toggled is false.
This property is to set the text value.
This property is to set the color of the text when the control is enabled.
This property is to set the color of the text when the control is disabled.
This property is to set the font size of the text.
This propperty is to set the font family of the text.
This property is to set the error text on the control.
This property is to set the error text color value on the control.
This property is to set the error text font size value on the control.
This property is to set the error text font family value on the control.
This property is to set the error text margin value on the control.
This property is to set if you can show a ShakeAnimation when there is a error with control.
This property is to set the side of the text, it could be: Right or Left. By default is Right.
This property is to set the VerticalOptions of the text. By default is End.
This property is to set the HorizontalOptions of the text. By default is Start.
This property is to set the HorizonatlOptions of the switch. By default is start.
This property is to set the space between switch and text. By default is 10.
This property is to set if the control is enabled or not. By default is True.