共用方式為


Layout.ShouldInvalidateOnChildRemoved(View) 方法

定義

警告

If you want to influence invalidation override InvalidateMeasureOverride

實作時,如果child應該在移除時呼叫 InvalidateMeasure() ,則應該傳回 true ,如果不應該呼叫 InvalidateMeasure(),則應該傳回 false 。 預設值是 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

參數

child
View

要為其指定是否追蹤失效的子系。

傳回

true如果 child 應該呼叫 ,則為 ,否則falseInvalidateMeasure()

屬性

適用於