This topic has not yet been rated - Rate this topic

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)


public void Arrange (
         int finalRectX,
         int finalRectY,
         int finalRectWidth,
         int finalRectHeight
)

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.

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.

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.