UIElement.Arrange Method
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.