WindowClosingBehavior Enumeration
Describes how the
Closing event behaves in the presence of child windows.
Namespace: Avalonia.ControlsAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public enum WindowClosingBehavior
Public Enumeration WindowClosingBehavior
type WindowClosingBehavior
| OwnerAndChildWindows | 0 |
When the owner window is closed, the child windows' Closing event
will be raised, followed by the owner window's Closing events. A child
canceling the close will result in the owner Window's close being cancelled.
|
| OwnerWindowOnly | 1 |
When the owner window is closed, only the owner window's Closing event
will be raised. This behavior is the same as WPF's.
|