Compartilhar via


IXRUIElement::UpdateLayout (Compact 2013)

3/28/2014

This method assures that the positions of all child elements of this UI element are updated for layout.

Syntax

virtual HRESULT STDMETHODCALLTYPE UpdateLayout() = 0;

Parameters

None.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

If the size of the element changes, the visual-host window should automatically update itself accordingly.

This method can be called after you call the IXRUIElement::Measure method. When you call this method after Measure, it updates the UI element by applying the new size dimensions that were specified in an earlier call to Measure.

Frequent calls to IXRUIElement::InvalidateArrange or in particular to UpdateLayout has significant performance consequences. Therefore, avoid calling this method unless you absolutely require the precise layout state for successive calls to other APIs in your XAML for Windows Embedded-based application.

.NET Framework Equivalent

System.Windows.UIElement.UpdateLayout

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRUIElement