VisualTreeAttachmentEventArgs Class
Definition
Holds the event arguments for the Avalonia.Visual.AttachedToVisualTree and Avalonia.Visual.DetachedFromVisualTree events.
public class VisualTreeAttachmentEventArgs
Constructors
| Name | Description |
|---|---|
| VisualTreeAttachmentEventArgs | Initializes 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
| Name | Description |
|---|---|
| AttachmentPoint | 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 |
| Parent | No summary available. |
| PresentationSource | Gets the root of the visual tree that the visual is being attached to or detached from. |
| Root | No summary available. |
| RootVisual | 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. |
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; }