From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

MobileScreen.Show(parent As MobileScreen = Nil)

Supported on Mobile.

Displays the Screen by "pushing" it over the parent Screen passed.


Show displays a new Screen over the current Screen, placing it on the "stack" so that the back functionality of the new Screen can be used to go back to the previous Screen. If you need to just change the current Screen without affecting the stack, you can do so by using the MobileApplication.CurrentLayout property.

Use the Close method to close the new Screen and go back to the previous Screen.

If you using an iOSTabBar or using an iOSSplitView, you'll need to pass as the parent parameter the Screen in front of which you wish the modal dialog to appear.

Sample Code

Displays a new Screen:

Var newScreen As New Screen2

See Also

ShowModal method.