Skip to main content

VisualTreeAttachmentEventArgs Class

Definition​

Namespace:Avalonia
Assembly:Avalonia.Base
Package:Avalonia
public class VisualTreeAttachmentEventArgs

Inheritance: EventArgs -> VisualTreeAttachmentEventArgs

Constructors​

NameDescription
VisualTreeAttachmentEventArgsInitializes a new instance of the Avalonia.VisualTreeAttachmentEventArgs class.

VisualTreeAttachmentEventArgs Constructor​

Initializes a new instance of the Avalonia.VisualTreeAttachmentEventArgs class.

public VisualTreeAttachmentEventArgs(Avalonia.Visual attachmentPoint, Avalonia.Rendering.IPresentationSource presentationSource)

Parameters​

attachmentPoint Avalonia.Visual

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

presentationSource Avalonia.Rendering.IPresentationSource

Presentation source this visual is being attached to.

Properties​

NameDescription
AttachmentPointGets the parent that the visual's tree is being attached to or detached from, null means that the entire tree is being attached to a PresentationSource
ParentNo summary available.
PresentationSourceGets the root of the visual tree that the visual is being attached to or detached from.
RootNo summary available.
RootVisualThe root visual of the tree this visual is being attached to or detached from. This is guaranteed to be non-null and will be the same as Avalonia.Rendering.IPresentationSource.RootVisual.

AttachmentPoint Property​

Gets the parent that the visual's tree is being attached to or detached from, null means that the entire tree is being attached to a PresentationSource

public Avalonia.Visual AttachmentPoint { get; set; }

Parent Property​

public Avalonia.Visual Parent { get; set; }

PresentationSource Property​

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

public Avalonia.Rendering.IPresentationSource PresentationSource { get; set; }

Root Property​

public Avalonia.Visual Root { get; set; }

RootVisual Property​

The root visual of the tree this visual is being attached to or detached from. This is guaranteed to be non-null and will be the same as Avalonia.Rendering.IPresentationSource.RootVisual.

public Avalonia.Visual RootVisual { get; set; }