Xamarin.Forms Guides | Samples

Xamarin.Forms.VisualElement.SizeAllocated Method

SizeAllocated is called during a layout cycle to signal the start of a sub-tree layout.

Syntax

protected Void SizeAllocated (Double width, Double height)

Parameters

width
The newly allocated width.
height
The newly allocated height.

Remarks

Calling SizeAllocated will start a new layout cycle on the children of the element. Excessive calls to SizeAllocated may cause performance problems.

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, 1.4.0.0, 1.5.0.0, 2.0.0.0