Application.Windows Property
Silverlight
Gets a collection of the Window instances that have been created.
Namespace: System.Windows
Assembly: System.Windows (in System.Windows.dll)
Property Value
Type: System.Windows.WindowCollectionA collection of the windows used by the application.
| Exception | Condition |
|---|---|
| NotSupportedException |
The application is not running outside the browser. |
| UnauthorizedAccessException |
The current thread is not the user interface (UI) thread. |
A Window instance is automatically added to this collection as soon as it is created, and is automatically removed after its Closing event has been handled. The first Window in the collection is the MainWindow.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.