|
|
|
@ -136,6 +136,11 @@ namespace Avalonia.Controls |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Fired when the window is opened.
|
|
|
|
/// </summary>
|
|
|
|
public event EventHandler Opened; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Fired when the window is closed.
|
|
|
|
/// </summary>
|
|
|
|
@ -311,6 +316,12 @@ namespace Avalonia.Controls |
|
|
|
$"Control '{GetType().Name}' is a top level control and cannot be added as a child."); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Raises the <see cref="Opened"/> event.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="e">The event args.</param>
|
|
|
|
protected virtual void OnOpened(EventArgs e) => Opened?.Invoke(this, e); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Tries to get a service from an <see cref="IAvaloniaDependencyResolver"/>, logging a
|
|
|
|
/// warning if not found.
|
|
|
|
|