ShellSection.OnChildRemoved 方法

定义

重载

OnChildRemoved(Element)
已过时.

开发人员可以重写此方法,以自定义删除子 Element 时的行为。

OnChildRemoved(Element, Int32)

OnChildRemoved(Element)

注意

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

开发人员可以重写此方法,以自定义删除子 Element 时的行为。

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

参数

child
Element
属性
System.ObsoleteAttribute

注解

开发人员应在重写方法的开头调用 base.OnChildRemoved()

适用于

OnChildRemoved(Element, Int32)

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

参数

child
Element
oldLogicalIndex
System.Int32

适用于