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

項目的新長度。

適用於