Share via


UIElement.MeasureOverride Method

Determines the custom size requirements for the layout of a child element when implemented in a derived class.

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

Syntax

protected virtual void MeasureOverride (
         intavailableWidth,
         intavailableHeight,
         ref intdesiredWidth,
         ref intdesiredHeight
)

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.
  • desiredWidth
    [OutAttribute] The width of the space that a parent element will allocate to a child element.
  • desiredHeight
    [OutAttribute] The height of the space that a parent element will allocate to a child element.

Remarks

You should override this virtual method to implement custom sizing behavior for your element, because it is part of the Windows Presentation Foundation (WPF) layout system.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

UIElement Class
UIElement Members
Microsoft.SPOT.Presentation Namespace