WindowClosedEventArgs Class
Assembly: UIAutomationTypes (in uiautomationtypes.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
To subscribe to window-closed events, call AddAutomationEventHandler, specifying WindowClosedEvent in the eventId parameter and supplying an UI Automation event handler that takes a WindowClosedEventArgs parameter.
When your application receives a window-closed event, the sender parameter of the event handler cannot be used to obtain information about the window that has closed, because the corresponding UI Automation element is no longer valid.
For example code, see GetRuntimeId.
System.EventArgs
System.Windows.Automation.AutomationEventArgs
System.Windows.Automation.WindowClosedEventArgs
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.