Xamarin.Forms.Layout: Method Members

The methods of Xamarin.Forms.Layout are listed below. For a list of all members, see the Layout Members list.

See Also: Inherited members from Xamarin.Forms.View

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.