Show / Hide Table of Contents

Method MeasureOverride

| Edit this page View Source

MeasureOverride(Size)

Provides the behavior for the "Measure" pass of the layout cycle. Classes can override this method to define their own "Measure" pass behavior.

Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
Type Name Description
Size constraint
Returns
Type Description
Size

The size that this object determines it needs during layout, based on its calculations of the allocated sizes for child objects or based on other considerations such as a fixed container size.

Overrides
FrameworkElement.MeasureOverride(Size)
| Edit this page View Source

MeasureOverride(Size)

Called to remeasure a control.

Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
Type Name Description
Size constraint

The maximum size that the method can return.

Returns
Type Description
Size

The size of the control, up to the maximum specified by constraint.

Overrides
Control.MeasureOverride(Size)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX