Share via


UIElement.Arrange Method

Positions child elements in a particular region on the screen.

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

Syntax

public void Arrange (
         intfinalRectX,
         intfinalRectY,
         intfinalRectWidth,
         intfinalRectHeight
)

Parameters

  • finalRectX
    The upper-left x-coordinate of the final rectangle that the parent uses to position the child element.
  • finalRectY
    The upper-left y-coordinate of the final rectangle that the parent uses to position the child element.
  • finalRectWidth
    The width of the final rectangle that the parent uses to position the child element.
  • finalRectHeight
    The height of the final rectangle that the parent uses to position the child element.

Remarks

Calling this method constitutes the second pass of a layout update.

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.

For derived elements, behavior of the Arrange method should not be changed (and cannot be changed, unless you shadow). Instead, you should override the ArrangeOverride method implementation in your class. Your ArrangeOverride implementation is called internally by the Arrange method as part of default layout operations.

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