Element.OnChildRemoved 方法

定义

重载

OnChildRemoved(Element)
已过时。

每当需要发出 ChildRemoved 事件时就会调用。 实现此方法可为此事件添加类处理。

OnChildRemoved(Element, Int32)

OnChildRemoved(Element)

注意

OnChildRemoved(Element) is obsolete as of version 4.8.0. Please use OnChildRemoved(Element, int) instead.

每当需要发出 ChildRemoved 事件时就会调用。 实现此方法可为此事件添加类处理。

[System.Obsolete("OnChildRemoved(Element) is obsolete as of version 4.8.0. Please use OnChildRemoved(Element, int) instead.")]
protected virtual void OnChildRemoved (Xamarin.Forms.Element child);
abstract member OnChildRemoved : Xamarin.Forms.Element -> unit
override this.OnChildRemoved : Xamarin.Forms.Element -> unit

参数

child
Element

已删除的元素。

属性

注解

此方法没有默认实现。 如果中间类实现了此方法,仍应调用基实现。

适用于

OnChildRemoved(Element, Int32)

protected virtual void OnChildRemoved (Xamarin.Forms.Element child, int oldLogicalIndex);
abstract member OnChildRemoved : Xamarin.Forms.Element * int -> unit
override this.OnChildRemoved : Xamarin.Forms.Element * int -> unit

参数

child
Element
oldLogicalIndex
Int32

适用于