Layout.ShouldInvalidateOnChildAdded(View) Method

Definition

Caution

If you want to influence invalidation override InvalidateMeasureOverride

When implemented, should return true if child should call InvalidateMeasure() when added, and should return false if it should not call InvalidateMeasure(). The default value is true.

C#
protected virtual bool ShouldInvalidateOnChildAdded (Microsoft.Maui.Controls.View child);
C#
[System.Obsolete("If you want to influence invalidation override InvalidateMeasureOverride")]
protected virtual bool ShouldInvalidateOnChildAdded (Microsoft.Maui.Controls.View child);

Parameters

child
View

The child for which to specify whether or not to track invalidation.

Returns

true if child should call InvalidateMeasure(), otherwise false.

Attributes

Applies to

Product Versions (Obsolete)
.NET MAUI 8 (9)