Window.Closed Event
.NET Framework 4.6 and 4.5
Occurs when the window is about to close.
Namespace: System.Windows
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
| Exception | Condition |
|---|---|
| InvalidOperationException | Visibility is set, or Show, ShowDialog, or Hide is called while a window is closing. |
Show: