Compartilhar via


Layout.ShouldInvalidateOnChildAdded(View) Método

Definição

Quando implementado, deve retornar true se deve chamar InvalidateMeasure() quando adicionado, e deve retornar false se não deve chamar InvalidateMeasure()child . O valor padrão é 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

Parâmetros

child
View

O filho para o qual especificar se a invalidação deve ser acompanhada ou não.

Retornos

true se child deve chamar InvalidateMeasure(), caso contrário false.

Aplica-se a