Skip to main content

OnClosing Method

Raises the Closing event.

Definition

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

protected virtual void OnClosing(
WindowClosingEventArgs e
)

Parameters

  WindowClosingEventArgs
The event args.

Remarks

A type that derives from Window may override OnClosing(WindowClosingEventArgs). The overridden method must call OnClosing(WindowClosingEventArgs) on the base class if the Closing event needs to be raised.

See Also

Reference

Window Class
Avalonia.Controls Namespace