Element.RemoveLogicalChild(Element) Method

Definition

Removes the first occurrence of a specific Element from the logical children.

C#
public bool RemoveLogicalChild (Microsoft.Maui.Controls.Element element);

Parameters

element
Element

The Element to remove.

Returns

true if item was successfully removed from the logical children; otherwise, false. This method also returns false if Element is not found.

Applies to

Product Versions
.NET MAUI 8, 9