MobileScreen.AddControl

From Xojo Documentation

Method

MobileScreen.AddControl(child As MobileControl)

Supported on Mobile.

Adds a control to the Screen.

Sample Code

Add a control to the Screen:

Var ctrl As New MobileSwitch
// Send its ValueChanged event to the SwitchValueChanged method on the View
AddHandler ctrl.ValueChanged, AddressOf SwitchValueChanged
Self.AddControl(ctrl)