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
VisualThe parent that the visual is being attached to or detached from.
root
IRenderRootThe root visual.
Properties
Parent
Gets the parent that the visual is being attached to or detached from.
public Visual Parent { get; }
Property Value
Root
Gets the root of the visual tree that the visual is being attached to or detached from.
public IRenderRoot Root { get; }