IXRUIElement::UpdateLayout (Windows Embedded CE 6.0)
1/6/2010
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 Silverlight-based application.
.NET Framework Equivalent
System.Windows.UIElement.UpdateLayout
Requirements
Header | XamlRuntime.h |
sysgen | SYSGEN_XAML_RUNTIME |
Windows Embedded CE | Windows Embedded CE 6.0 R3 |