Table of Contents

Struct AttachEventRef

Namespace
Xui.Core.UI
Assembly
Xui.Core.dll

Passed to OnAttach(ref AttachEventRef) when a view is added to the visual tree. Carries tree-wide shared resources (e.g. instrumentation) down the DFS walk so every view in the subtree receives them without per-view service lookups.

public ref struct AttachEventRef
Inherited Members

Constructors

AttachEventRef()

Initializes a new AttachEventRef.

public AttachEventRef()

Fields

Instruments

Instrumentation sink for the visual tree. Views receive this during attach and store it so invalidation methods (e.g. InvalidateRender(), RequestAnimationFrame()) can log consistently with the layout-pass instrumentation carried by Instruments.

public InstrumentsAccessor Instruments

Field Value

InstrumentsAccessor