Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Window.GetWindow Method

Gets the window that contains the specified DependencyObject.

Namespace:  System.Windows
Assembly:  System.Windows (in System.Windows.dll)
public static Window GetWindow(
	DependencyObject dependencyObject
)

Parameters

dependencyObject
Type: System.Windows.DependencyObject
The object contained by the Window to get.

Return Value

Type: System.Windows.Window
The Window to get.
ExceptionCondition
NotSupportedException

The application is not running outside the browser.

InvalidOperationException

dependencyObject is not a valid DependencyObject.

Silverlight

Supported in: 5

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.