The Switch control is a possible value for the control type property for "two-state" variables or attributes. It's a toggle switch control that enables to select between two options, whether a certain condition or value is on or off.
It replaces the traditional check box, and it's valid for Smart Devices and Responsive Web Applications as well.
Only the Abstract layout supports this control.




For SD apps, use the Accent Color property of the Application Class.

For WEB applications, check the Class property of the control and edit its properties on the Flat Theme:

Properties
Name |
Description |
Auto Grow (SD only) |
Auto Grow description |
Checked Value |
Indicates the "switch on" value |
Unchecked Value |
Indicates the "switch off" value |
ON Text (Web only) |
indicates the text it shows when the ON value is selected |
OFF Text (Web only) |
indicates the text it shows when the OFF value is selected |
ControlValueChanged : It trigers when the value of the control changes.
The ValueChanged event for the Switch control in IOS has been deprecated. The ControlValueChanged event should be used instead.
|