ArrangeOverride Method
Collapse the table of content
Expand the table of content

PhoneApplicationFrame.ArrangeOverride Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.

Namespace:  Microsoft.Phone.Controls
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

protected override Size ArrangeOverride(
	Size finalSize
)

Parameters

finalSize
Type: System.Windows.Size
The final area within the parent that this element should use to arrange itself and its children.

Return Value

Type: System.Windows.Size
Returns Size. The actual size used.

Windows Phone will always lay out the RootVisual in portrait orientation with the origin at the top-left corner of the physical screen. However, the PhoneApplicationFrame class switches the Width and Height during the arrange and measure passes, in addition to applying a rotate transform, in order to display content in landscape mode.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft