Windows Property

Application.Windows Property

Gets a collection of the Window instances that have been created.

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

public WindowCollection Windows { get; }

Property Value

Type: System.Windows.WindowCollection
A collection of the windows used by the application.


The application is not running outside the browser.


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.


Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2016 Microsoft