Xamarin.Forms by Microsoft

<PackageReference Include="Xamarin.Forms" Version="4.3.0.991221" />

.NET API 1,179,760 bytes

 Layout

public abstract class Layout : View, ILayout, ILayoutController, IPaddingElement

Provides the base class for all Layout elements. Use Layout elements to position and size child elements in Xamarin.Forms applications.

Backing store for the CascadeInputTransparent property.

Identifies the IsClippedToBounds bindable property.

public static readonly BindableProperty PaddingProperty

Identifies the Padding bindable property.

public bool CascadeInputTransparent { get; set; }

Gets or sets a value that controls whether child elements inherit the input transparency of this layout when the tranparency is true.

public IReadOnlyList<Element> Children { get; }

For internal use by the Xamarin.Forms platform.

public bool IsClippedToBounds { get; set; }

Gets or sets a value which determines if the Layout should clip its children to its bounds.

public Thickness Padding { get; set; }

Gets or sets the inner padding of the Layout.

Occurs at the end of a layout cycle if any of the child element's Bounds have changed.

protected Layout()

public static void LayoutChildIntoBoundingRegion(VisualElement child, Rectangle region)

Positions a child element into a bounding region while respecting the child elements HorizontalOptions and VerticalOptions.

public void ForceLayout()

Forces a layout cycle on the element and all of its descendants.

protected virtual void InvalidateLayout()

Invalidates the current layout.

protected abstract void LayoutChildren(double x, double y, double width, double height)

Positions and sizes the children of a Layout.

public void LowerChild(View view)

Sends a child to the back of the visual stack.

protected void OnChildMeasureInvalidated(object sender, EventArgs e)

Invoked whenever a child of the layout has emitted MeasureInvalidated. Implement this method to add class handling for this event.

protected virtual void OnChildMeasureInvalidated()

Invoked whenever a child of the layout has emitted MeasureInvalidated. Implement this method to add class handling for this event.

public void RaiseChild(View view)

Sends a child to the front of the visual stack.

protected virtual bool ShouldInvalidateOnChildAdded(View child)

When implemented, should return true if child should call InvalidateMeasure, and to return false if it should not.

protected virtual bool ShouldInvalidateOnChildRemoved(View child)

When implemented, should return true if child should call InvalidateMeasure when it is removed, and to return false if it should not.

protected void UpdateChildrenLayout()

Instructs the layout to relayout all of its children.