Share via


Element.OnChildAdded(Element) 方法

定義

引發 ChildAdded 事件。 實作這個方法可為此事件加入類別處理。

protected:
 virtual void OnChildAdded(Microsoft::Maui::Controls::Element ^ child);
protected virtual void OnChildAdded (Microsoft.Maui.Controls.Element child);
abstract member OnChildAdded : Microsoft.Maui.Controls.Element -> unit
override this.OnChildAdded : Microsoft.Maui.Controls.Element -> unit
Protected Overridable Sub OnChildAdded (child As Element)

參數

child
Element

已新增為子系的專案。

備註

這個方法沒有預設實作。 如果中繼類別已實作此方法,您仍應該呼叫基底實作。

適用於