Editar

Partilhar via


ContentPresenter.MeasureOverride(Size) Method

Definition

Determines the size of the ContentPresenter object based on the sizing properties, margin, and requested size of the child content.

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

An upper limit value that the return value should not exceed.

Returns

The size that is required to arrange child content.

Applies to

See also