VisualDiagnostics.OnChildRemoved Method

Definition

Called when a child element is removed from the visual tree; raises VisualTreeChanged event.

public:
 static void OnChildRemoved(Microsoft::Maui::IVisualTreeElement ^ parent, Microsoft::Maui::IVisualTreeElement ^ child, int oldLogicalIndex);
public static void OnChildRemoved(Microsoft.Maui.IVisualTreeElement parent, Microsoft.Maui.IVisualTreeElement child, int oldLogicalIndex);
static member OnChildRemoved : Microsoft.Maui.IVisualTreeElement * Microsoft.Maui.IVisualTreeElement * int -> unit
Public Shared Sub OnChildRemoved (parent As IVisualTreeElement, child As IVisualTreeElement, oldLogicalIndex As Integer)

Parameters

parent
IVisualTreeElement

The parent visual element.

child
IVisualTreeElement

The child visual element that was removed.

oldLogicalIndex
Int32

The previous logical index of the child.

Applies to