Table of Contents

Method CreateGridWithToolBarAndContent

Namespace
Alternet.UI
Assembly
Alternet.UI.Maui.dll

CreateGridWithToolBarAndContent(View, View)

Creates a grid layout with a toolbar at the top and content below it.

public static Grid CreateGridWithToolBarAndContent(View toolBar, View content)

Parameters

toolBar View

The view to display as the toolbar in the first row of the grid. Cannot be null.

content View

The view to display as the main content in the second row of the grid. Cannot be null.

Returns

Grid

A Grid containing the specified toolbar in the first row and the content in the second row.

Remarks

The toolbar is placed in a row with automatic height, while the content occupies the remaining available space. Both views are added as direct children of the returned grid.