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.

protected:
 virtual void OnSizeAllocated(double width, double height);
protected virtual void OnSizeAllocated (double width, double height);
abstract member OnSizeAllocated : double * double -> unit
override this.OnSizeAllocated : double * double -> unit
Protected Overridable Sub OnSizeAllocated (width As Double, height As Double)

Parameters

width
Double

The new width of the element.

height
Double

The new height of the element.

Applies to