WindowOnClosing Method

Raises the Closing event.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
protected virtual void OnClosing(
	WindowClosingEventArgs e
)

Parameters

e  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