Layout.ShouldInvalidateOnChildRemoved(View) 方法

定义

实现时,应返回truechild删除时应调用InvalidateMeasure(),如果不应调用InvalidateMeasure(),应返回false。 默认值为 true

protected:
 virtual bool ShouldInvalidateOnChildRemoved(Microsoft::Maui::Controls::View ^ child);
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
Protected Overridable Function ShouldInvalidateOnChildRemoved (child As View) As Boolean

参数

child
View

要指定是否跟踪失效的子级。

返回

true如果应调用,则为 child;否则为 <a0/a0;。false

适用于