Share via


UIElement.Measure Method

Determines the size requirements for the layout of a child element.

Namespace: Microsoft.SPOT.Presentation
Assembly: Microsoft.SPOT.TinyCore (in microsoft.spot.tinycore.dll)

Syntax

public void Measure (
         intavailableWidth,
         intavailableHeight
)

Parameters

  • availableWidth
    The width of the available space that a parent element can allocate to a child element.
  • availableHeight
    The height of the available space that a parent element can allocate to a child element.

Remarks

Calling this method constitutes the first pass of a layout update in the layout engine.

Computation of layout positioning in Windows Presentation Foundation (WPF) consists of a Measure method call and an Arrange method call. During the Measure call, an element determines its size requirements, using the specified available sizes. During the Arrange call, the element size is finalized and returned.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

UIElement Class
UIElement Members
Microsoft.SPOT.Presentation Namespace