Export (0) Print
Expand All

Application.Windows Property

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

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

'Declaration
Public ReadOnly Property Windows As WindowCollection

Property Value

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

ExceptionCondition
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.

Silverlight

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

ADD
Show:
© 2014 Microsoft