From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
The currently displayed layout. You can use this property to access the current layout so that you can change its content.
The layout is typically the base (first) screen that was displayed in a phone app. It may also refer to a Split screen or a Tab screen.
In most cases you will want to use the MobileScreen.Show method to display a new screen over the initial screen. This retains the screen hierarchy and allows the back button to go back to the previous screen.
There may be times when you need to replace the entire screen/layout and do not want the screen hierarchy. For example, you may have an initial login screen that is displayed but after the user successfully logs in and you want to replace that screen with another screen so that the back button does not return the user to the login screen.
You can directly change the layout content like this to swap in a new screen: