Share via


VisualElement.SizeAllocated(Double, Double) 方法

定义

在布局周期期间调用的方法,以指示子树布局的开始。

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

参数

width
Double

新分配的宽度。

height
Double

新分配的高度。

注解

调用 SizeAllocated(Double, Double) 将在 元素的子元素上启动新的布局周期。 对此方法的过度调用可能会导致性能问题。

适用于