Export (0) Print
Expand All

UIElement.IsMeasureValid Property

Gets a value indicating whether the current size returned by layout measure is valid.

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public bool IsMeasureValid { get; }
/** @property */
public boolean get_IsMeasureValid ()

public function get IsMeasureValid () : boolean

You cannot use this property in XAML.

Property Value

true if the measure pass of layout returned a valid and current value; otherwise, false.

You can force measurement and arrangement to be invalidated by calling InvalidateMeasure on this element (or any parent element up the visual tree). This designates the layout for recomposition asynchonously, occuring at a time determined by the layout system. Alternatively, you could make an immediate call to UpdateLayout. However, you should only call UpdateLayout if it is likely that no further invalidations are pending (a large number of unnecessarily forced updates will have performance consequences).

If IsMeasureValid is false, IsArrangeValid must also be false (by the enforced logic of the layout process, arrangement cannot be valid without measurement first being valid).

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft