Element.OnChildAdded(Element) Method

Definition

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

C#
protected virtual void OnChildAdded (Microsoft.Maui.Controls.Element child);

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

Product Versions
.NET MAUI 8, 9