Layout.ShouldInvalidateOnChildAdded(View) 方法

定义

注意

If you want to influence invalidation override InvalidateMeasureOverride

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

protected:
 virtual bool ShouldInvalidateOnChildAdded(Microsoft::Maui::Controls::View ^ child);
protected virtual bool ShouldInvalidateOnChildAdded (Microsoft.Maui.Controls.View child);
[System.Obsolete("If you want to influence invalidation override InvalidateMeasureOverride")]
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
[<System.Obsolete("If you want to influence invalidation override InvalidateMeasureOverride")>]
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

参数

child
View

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

返回

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

属性

适用于