Canvas.MeasureOverride Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Provides the behavior for the "measure" pass of layout.
Assembly: System.Windows (in System.Windows.dll)
'Declaration Protected Overrides NotOverridable Function MeasureOverride ( _ constraint As Size _ ) As Size
Parameters
- constraint
- Type: System.Windows.Size
The available size that this object can give to child objects. Infinity can be specified as a value to indicate that the object will size to whatever content is available.
Return Value
Type: System.Windows.SizeThe size that this object determines it needs during layout, based on its calculations of child object allotted sizes.
Show: