Class ClosingEventArgs
Provides data for the System.Windows.Window.Closing event.
Inheritance
System.Object
System.EventArgs
System.ComponentModel.CancelEventArgs
ClosingEventArgs
Inherited Members
System.ComponentModel.CancelEventArgs.Cancel
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.ComponentModel
Assembly: OpenSilver.dll
Syntax
public class ClosingEventArgs : CancelEventArgs
Constructors
| Improve this Doc View SourceClosingEventArgs(Boolean)
Initializes a new instance of the System.ComponentModel.ClosingEventArgs class.
Declaration
public ClosingEventArgs(bool isCancelable)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isCancelable | Initializes the System.ComponentModel.ClosingEventArgs.IsCancelable property. |
Properties
| Improve this Doc View SourceIsCancelable
Gets a value that indicates whether you can cancel the Window.Closing event.
Declaration
public bool IsCancelable { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
ShowCloseConfirmationDialog
Declaration
public bool ShowCloseConfirmationDialog { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |