Share via


Element.OnChildAdded(Element) Method

Definition

Raises the ChildAdded event. Implement this method to add class handling for this event.

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)

Parameters

child
Element

The element that's been added as a child.

Remarks

This method has no default implementation. You should still call the base implementation in case an intermediate class has implemented this method.

Applies to