Skip to main content

Loaded Event

Occurs when the control has been fully constructed in the visual tree and both layout and render are complete.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public event EventHandler<RoutedEventArgs> Loaded
View Source

Value

EventHandler(RoutedEventArgs)

Remarks

This event is guaranteed to occur after the control template is applied and references to objects created after the template is applied are available. This makes it different from OnAttachedToVisualTree which doesn't have these references. This event occurs at the latest possible time in the control creation life-cycle.

See Also

Reference

Control Class
Avalonia.Controls Namespace