StackLayout Constructor

Definition

Initializes a new instance of the StackLayout class.

public StackLayout ();

Remarks

The following example shows the initialization of a new StackLayout and setting its orientation and children.


var stackLayout = new StackLayout {
  Orientation = StackOrientation.Horizontal,
  Children = {
    firstChild,
    secondChild,
    thirdChild
  }
};

Applies to