Επεξεργασία

Κοινή χρήση μέσω


AdornedElementPlaceholder.MeasureOverride(Size) Method

Definition

Determines the size of the AdornedElementPlaceholder object.

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 desired size of this AdornedElementPlaceholder object.

Exceptions

The AdornedElementPlaceholder object is not part of a template.

Remarks

This method measures only the first visual child object. The returned value is also based on the size of the element for which this AdornedElementPlaceholder is a placeholder for.

Applies to

See also