Skip to main content

WindowClosingEventArgs Class

Definition

Assembly:Avalonia.Controls
Package:Avalonia

Provides data for the Avalonia.Controls.Window.Closing event.

public class WindowClosingEventArgs

Inheritance: CancelEventArgs -> WindowClosingEventArgs

Properties

NameDescription
CloseReasonGets a value that indicates why the window is being closed.
IsProgrammaticGets a value indicating whether the window is being closed programmatically.

CloseReason Property

Gets a value that indicates why the window is being closed.

public Avalonia.Controls.WindowCloseReason CloseReason { get; set; }

IsProgrammatic Property

Gets a value indicating whether the window is being closed programmatically.

public bool IsProgrammatic { get; set; }