AdornerLayer.MeasureOverride(Size) Method

Definition

测量子元素所需的大小,并确定 AdornerLayer 的大小。Measures the size required for child elements and determines a size for the AdornerLayer.

protected:
 override System::Windows::Size MeasureOverride(System::Windows::Size constraint);
protected override System.Windows.Size MeasureOverride (System.Windows.Size constraint);
override this.MeasureOverride : System.Windows.Size -> System.Windows.Size
Protected Overrides Function MeasureOverride (constraint As Size) As Size

Parameters

constraint
Size

未使用。Unused.

Returns

Size

该方法将始终返回 (0,0) 的 SizeThis method always returns a Size of (0,0).

Remarks

AdornerLayer 应与其父级大小相同,并且不会占用布局空间。The AdornerLayer should be the same size as its parent and consume no layout space.

此方法重写 MeasureOverrideThis method overrides MeasureOverride.

Applies to

See also