Skip to content

Layout

The Layout allows the positioning of child elements inside a grid. It is often used as the root element of a page.

Child elements are positioned in the grid using the GridCol, GridRow, ColumnSpan, RowSpan properties (see VisualElement).

Ancestry

BaseElement - VisualElement - Layout

Properties

ColumnDefinitions (String) Definition of the dimensions of the Layout columns. A series of possible values ​​among: “”: full width available “xx”: a fraction of the available width (ex: “0.5*” for half the available width) “Auto”: the column will automatically size itself according to its content “Value in pixels”: a fixed value in pixels (e.g. “200”)

Ex: ColumnDefinition="120 0.5 0.5 Auto"

RowDefinitions (String) Definition of the dimensions of the Layout lines. The format is the same as for ColumnDefinition.

Children (List of VisualElement) Elements to display inside the Layout and to position in the grid

See as well

VisualElement, Launcher, Random, ItemsPanel