Layout.ShouldInvalidateOnChildRemoved(View) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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
應該呼叫 ,則為 ,否則false
為 InvalidateMeasure()。
- 屬性