Table of Contents

Class VisualTreeAttachmentEventArgs

Namespace
Avalonia
Assembly
Avalonia.Base.dll

Holds the event arguments for the AttachedToVisualTree and DetachedFromVisualTree events.

public class VisualTreeAttachmentEventArgs : EventArgs
Inheritance
VisualTreeAttachmentEventArgs
Inherited Members

Constructors

VisualTreeAttachmentEventArgs(Visual, IRenderRoot)

Initializes a new instance of the VisualTreeAttachmentEventArgs class.

public VisualTreeAttachmentEventArgs(Visual parent, IRenderRoot root)

Parameters

parent Visual

The parent that the visual is being attached to or detached from.

root IRenderRoot

The root visual.

Properties

Parent

Gets the parent that the visual is being attached to or detached from.

public Visual Parent { get; }

Property Value

Visual

Root

Gets the root of the visual tree that the visual is being attached to or detached from.

public IRenderRoot Root { get; }

Property Value

IRenderRoot