WindowPattern.WindowClosedEvent Field

 

Identifies the event that is raised when a window is closed.

Namespace:   System.Windows.Automation
Assembly:  UIAutomationClient (in UIAutomationClient.dll)

static val WindowClosedEvent : AutomationEvent

A client application may need to listen for WindowClosedEvent from a cached object since a window is removed from the UI Automation control view structure immediately upon being closed.

This identifier is used by UI Automation client applications. UI Automation providers should use the equivalent field in WindowPatternIdentifiers.

In the following example, event listeners are declared and an AutomationEventHandler delegate is specified for WindowOpenedEvent and WindowClosedEvent events.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: