Share via


IXRUIElement::InvalidateMeasure (Windows Embedded CE 6.0)

1/6/2010

This method invalidates the measurement state, or layout, for this UI element.

Syntax

virtual HRESULT STDMETHODCALLTYPE InvalidateMeasure() = 0;

Parameters

None.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

You can call this method when a child object of this UI element's parent object is added or removed, and it is necessary to invalidate the current measurements and resize the children objects. For example, call this method on a UI element arranged on a panel when you remove items or insert items in the collection that belongs to an IXRPanel object.

Calling this method also calls IXRUIElement::InvalidateArrange internally, so there is no need to call InvalidateMeasure and InvalidateArrange in succession. After the invalidation, the element will have its layout updated, which will occur asynchronously, unless IXRUIElement::UpdateLayout is called to force a synchronous layout change.

.NET Framework Equivalent

System.Windows.UIElement.InvalidateMeasure

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRUIElement
IXRUIElement::Measure