Share via


IXRUIElement::GetDesiredSize (Compact 2013)

3/28/2014

This method retrieves the size of this UI element as computed during the measure pass of the layout process.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetDesiredSize(
    XRSize* pSize
) = 0;

Parameters

  • pSize
    [out] Pointer to an XRSize structure that indicates the size that this UI element computed during the measure pass of the layout process.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The value in pSize is set by calling the IXRUIElement::Measure method.

.NET Framework Equivalent

System.Windows.UIElement.DesiredSize

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRUIElement