Xamarin.Forms.Layout Members

The members of Xamarin.Forms.Layout are listed below.

See Also: Inherited members from Xamarin.Forms.View

Protected Constructors

Intitializes a new Xamarin.Forms.Layout instance.

Public Fields

static readonly
IsClippedToBoundsPropertyBindableProperty. Identifies the Layout.IsClippedToBounds bindable property.
static readonly
PaddingPropertyBindableProperty. Identifies the Padding bindable property.

Public Properties

IsClippedToBoundsbool. Gets or sets a value which determines if the Layout should clip its children to its bounds.
PaddingThickness. Gets or sets the inner padding of the Layout.

Public Methods

ForceLayout()
Forces a layout cycle on the element and all of its descendants.
override
GetSizeRequest(double, double) : SizeRequest
Returns the Xamarin.Forms.SizeRequest of the Layout. Calling this method begins the measure pass of a layout cycle.
static
LayoutChildIntoBoundingRegion(VisualElement, Rectangle)
Positions a child element into a bounding region while respecting the child elements VisualElement.HorizontalOptions and VisualElement.VerticalOptions.
LowerChild(View)
Sends a child to the back of the visual stack.
RaiseChild(View)
Sends a child to the front of the visual stack.

Protected Methods

InvalidateLayout()
Invalidates the current layout.
abstract
LayoutChildren(double, double, double, double)
Positions and sizes the children of a Layout.
OnChildMeasureInvalidated()
Invoked whenever a child of the layout has emitted VisualElement.MeaureInvalidated. Implement this method to add class handling for this event.
OnChildMeasureInvalidated(object, EventArgs)
Invoked whenever a child of the layout has emitted VisualElement.MeaureInvalidated. Implement this method to add class handling for this event.
override
OnSizeAllocated(double, double)
This method is called when the size of the element is set during a layout cycle. This method is called directly before the VisualElement.SizeChanged event is emitted. Implement this method to add class handling for this event.
ShouldInvalidateOnChildAdded(View) : bool
When implemented, should return true if child should call VisualElement.InvalidateMeasure, and to return false if it should not.
ShouldInvalidateOnChildRemoved(View) : bool
When implemented, should return true if child should call VisualElement.InvalidateMeasure when it is removed, and to return false if it should not.
UpdateChildrenLayout()
Instructs the layout to relayout all of its children.

Public Events

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