[ 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, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
'Declaration Protected Overrides Function MeasureOverride ( _ availableSize As Size _ ) As Size
- Type: System.Windows.Size
The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.
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.