VisualElement.OnSizeAllocated(Double, Double) Method

Definition

Method that is called when the size of the element is set during a layout cycle. Implement this method to add class handling for this event.

C#
protected virtual void OnSizeAllocated (double width, double height);

Parameters

width
Double

The new width of the element.

height
Double

The new height of the element.

Applies to

Product Versions
.NET MAUI 8, 9