Dela via


LayoutInformation.GetAvailableSize(UIElement) Method

Definition

Returns the Size value that was most recently used to measure the specified element.

public:
 static Size GetAvailableSize(UIElement ^ element);
 static Size GetAvailableSize(UIElement const& element);
public static Size GetAvailableSize(UIElement element);
function getAvailableSize(element)
Public Shared Function GetAvailableSize (element As UIElement) As Size

Parameters

element
UIElement

The element for which to return the most recent size.

Returns

The Size given as an argument on the most recent call to measure this element, or a Size of 0,0 if the element has not been measured yet.

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Applies to

See also