MobileScreen.ContentSize

From Xojo Documentation

Method

MobileScreen.ContentSize() As Size

Supported on Mobile.

The size (in points) of the content area of the Screen. This excludes the Navigation Bar, Tab Bar and Toolbar if they are on the Screen.

Sample Code

Get the content size of the Screen:

Var screenSize As String = Self.ContentSize.Width.ToString + " by " + Self.ContentSize.Height.ToString