Element.OnChildAdded(Element) 方法

定义

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

protected virtual void OnChildAdded(Xamarin.Forms.Element child);
abstract member OnChildAdded : Xamarin.Forms.Element -> unit
override this.OnChildAdded : Xamarin.Forms.Element -> unit

参数

child
Element

已添加的元素。

注解

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

适用于