共用方式為


Layout.ShouldInvalidateOnChildAdded(View) 方法

定義

警告

If you want to influence invalidation override InvalidateMeasureOverride

實作時,如果child應該在新增時呼叫 InvalidateMeasure() ,則應該傳回 true ,如果不應該呼叫 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 應該呼叫 ,則為 ,否則falseInvalidateMeasure()

屬性

適用於