VisualElement.SizeAllocated(Double, Double) VisualElement.SizeAllocated(Double, Double) Method

Definition

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

protected void SizeAllocated (double width, double height);
member this.SizeAllocated : double * double -> unit
Parameters
width
Double Double

The newly allocated width.

height
Double Double

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.

Applies to