The Switch control is presented as a toggle that allows selecting one of two possible values: on or off. It is one of the built-in controls and can be selected from the Control Type property.
It may be used as a replacement for the traditional Check Box control, and it's available for Panels and for Web Panels as well.
Only the Abstract Layout supports this control.




As of GeneXus 17 Upgrade 5, both Web and Mobile applications support configuring the visual aspect of the control via a Theme Class.


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 is triggered 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.