WindowPattern::WindowClosedEvent Field


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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

static initonly AutomationEvent^ WindowClosedEvent

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