Freigeben über


Layout.ShouldInvalidateOnChildAdded(View) Methode

Definition

Wenn die Implementierung implementiert wird, sollte zurückgegeben true werden, wenn child sie beim Hinzufügen aufgerufen InvalidateMeasure() werden soll, und sollte zurückgegeben false werden, wenn sie nicht aufgerufen InvalidateMeasure()werden soll. Der Standardwert ist true.

protected:
 virtual bool ShouldInvalidateOnChildAdded(Microsoft::Maui::Controls::View ^ child);
protected virtual bool ShouldInvalidateOnChildAdded (Microsoft.Maui.Controls.View child);
abstract member ShouldInvalidateOnChildAdded : Microsoft.Maui.Controls.View -> bool
override this.ShouldInvalidateOnChildAdded : Microsoft.Maui.Controls.View -> bool
Protected Overridable Function ShouldInvalidateOnChildAdded (child As View) As Boolean

Parameter

child
View

Das untergeordnete Element, für das festgelegt werden soll, ob die Invalidierung nachverfolgt werden soll.

Gibt zurück

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

Gilt für: