VisualElement.OnSizeAllocated(Double, Double) 方法

定义

在布局周期中设置元素大小时调用的方法。 实现此方法可为此事件添加类处理。

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)

参数

width
Double

元素的新宽度。

height
Double

元素的新高度。

适用于