IsMeasureValid Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  Microsoft.SPOT.Presentation
Assembly:  Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)

Syntax

'Declaration
Public ReadOnly Property IsMeasureValid As Boolean
public bool IsMeasureValid { get; }
public:
property bool IsMeasureValid {
    bool get ();
}
member IsMeasureValid : bool
function get IsMeasureValid () : boolean

Property Value

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

Remarks

You can force measurement and arrangement to be invalidated by calling the InvalidateMeasure method on this element (or its parents). This flags the layout for recomposition at such time as the layout system determines. Alternatively, an immediate call to UpdateLayout could be made, but this should only be done if it is certain that no further invalidations are pending (a large number of unnecessarily forced updates has 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).

.NET Framework Security

See Also

Reference

UIElement Class

Microsoft.SPOT.Presentation Namespace