Share 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.

Applies to

See also