VisualTreeAttachmentEventArgs Class

Summary

Holds the event arguments for the AttachedToVisualTree and DetachedFromVisualTree events.
Namespace
Avalonia
Base Types
  • object
  • EventArgs
graph TD Base0["EventArgs"]-->Type Base1["object"]-->Base0 Type["VisualTreeAttachmentEventArgs"] class Type type-node

Syntax

public class VisualTreeAttachmentEventArgs : EventArgs

Constructors

Name Summary
VisualTreeAttachmentEventArgs(IVisual, IRenderRoot) Initializes a new instance of the VisualTreeAttachmentEventArgs class.

Properties

Name Value Summary
Parent IVisual
Gets the parent that the visual is being attached to or detached from.
Root IRenderRoot
Gets the root of the visual tree that the visual is being attached to or detached from.