Compartir a través de


Layout.ShouldInvalidateOnChildRemoved(View) Método

Definición

Precaución

If you want to influence invalidation override InvalidateMeasureOverride

Cuando se implementa, debe devolver true si child debe llamar a InvalidateMeasure() cuando se quita y debe devolver false si no debe llamar a InvalidateMeasure(). El valor predeterminado es true.

protected:
 virtual bool ShouldInvalidateOnChildRemoved(Microsoft::Maui::Controls::View ^ child);
protected virtual bool ShouldInvalidateOnChildRemoved (Microsoft.Maui.Controls.View child);
[System.Obsolete("If you want to influence invalidation override InvalidateMeasureOverride")]
protected virtual bool ShouldInvalidateOnChildRemoved (Microsoft.Maui.Controls.View child);
abstract member ShouldInvalidateOnChildRemoved : Microsoft.Maui.Controls.View -> bool
override this.ShouldInvalidateOnChildRemoved : Microsoft.Maui.Controls.View -> bool
[<System.Obsolete("If you want to influence invalidation override InvalidateMeasureOverride")>]
abstract member ShouldInvalidateOnChildRemoved : Microsoft.Maui.Controls.View -> bool
override this.ShouldInvalidateOnChildRemoved : Microsoft.Maui.Controls.View -> bool
Protected Overridable Function ShouldInvalidateOnChildRemoved (child As View) As Boolean

Parámetros

child
View

Elemento secundario para el que se va a especificar si hay que hacer un seguimiento de la invalidación o no.

Devoluciones

true si child debe llamar a InvalidateMeasure(), de lo contrario false, .

Atributos

Se aplica a