iOSLayout.Content

From Xojo Documentation

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

Read-Only Property (As iOSLayoutContent )
iOSLayoutContentValue = aiOSLayout.Content

Supported on Mobile.

The content to display on the layout. This can be a single Screen, an iOSSplitView (consisting of main and a detail Screens) or an iOSTabBar (consisting of multiple Screens).

Sample Code

You can directly change the screen content without using MobileScreen.Show. This code creates a new MobileScreen (Screen2, added to the project) and directly assigns it to the content:

Var myNewScreen As New Screen2
App.CurrentScreen.Content = myNewScreen

See Also

MobileApplication, MobileScreen, iOSSplitView and iOSTabBar classes.