WindowClosedEventArgs, classe
.NET Framework 3.0
Contains information about the event that is raised when a window is closed.
Espace de noms: System.Windows.Automation
Assembly : UIAutomationTypes (dans uiautomationtypes.dll)
Espace de noms XML : http://schemas.microsoft.com/winfx/2006/xaml/presentation
Assembly : UIAutomationTypes (dans uiautomationtypes.dll)
Espace de noms XML : 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.Object
System.EventArgs
System.Windows.Automation.AutomationEventArgs
System.Windows.Automation.WindowClosedEventArgs
System.EventArgs
System.Windows.Automation.AutomationEventArgs
System.Windows.Automation.WindowClosedEventArgs