Layout.ShouldInvalidateOnChildAdded(View) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
If you want to influence invalidation override InvalidateMeasureOverride
实现时,应返回true
在child
添加时应调用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
如果应调用,则为 false
- 属性