Xamarin.Forms.Layout.OnSizeAllocated Method
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.

Syntax

protected override void OnSizeAllocated (double width, double height)

Parameters

width
The new width of the element.
height
The new height of the element.

Remarks

This method has a default implementation which triggers the layout cycle of the Layout to begin.

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0