Window::GetWindow Method (DependencyObject^)
.NET Framework (current version)
Returns a reference to the Window object that hosts the content tree within which the dependency object is located.
Assembly: PresentationFramework (in PresentationFramework.dll)
Parameters
- dependencyObject
-
Type:
System.Windows::DependencyObject^
The dependency object.
| Exception | Condition |
|---|---|
| ArgumentNullException | dependencyObject is null. |
.NET Framework
Available since 3.0
Silverlight
Available since 5.0
Available since 3.0
Silverlight
Available since 5.0
Show: