Skip to main content

Parent Property

Gets the control that Source is being attached to or detached from.

Definition

Namespace: Avalonia.LogicalTree
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public ILogical? Parent { get; }

Property Value

ILogical

Remarks

For logical tree attachment, holds the new logical parent of Source. For detachment, holds the old logical parent of Source. If the detachment event was caused by a top-level control being closed, then this property will be null.

See Also

Reference

LogicalTreeAttachmentEventArgs Class
Avalonia.LogicalTree Namespace