ContentPage

Basic example

A single page app typically returns a ContentPage. For example:

View.ContentPage(
    title = "ContentPage",
    content = View.Label("ContentPage with a single Label")
)

Basic example with styling

View.ContentPage(
    backgroundColor = style.PageColor,
    title = "ContentPage",
    content = View.Label(
        horizontalOptions = style.Position,
        verticalOptions = style.Position,
        backgroundColor = style.ViewColor,
        padding = style.Padding,
        text = "ContentPage with a single Label"
    )
)

See also: