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)
- C#
- VB
- F#
public event EventHandler<RoutedEventArgs> Loaded
Public Event Loaded As EventHandler(Of RoutedEventArgs)
member Loaded : IEvent<EventHandler<RoutedEventArgs>,
RoutedEventArgs>
Value
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.