VisualElement.OnChildRemoved 方法

定義

多載

OnChildRemoved(Element)
已過時。

應用程式開發人員可以覆寫此方法,以便在移除子系時加以回應。

OnChildRemoved(Element, Int32)

OnChildRemoved(Element)

警告

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

應用程式開發人員可以覆寫此方法,以便在移除子系時加以回應。

[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

已移除的子系。

屬性

備註

覆寫此方法的應用程式開發人員必須呼叫基底。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
Int32

適用於