PresentationSource::FromDependencyObject Method (DependencyObject^)

 

Returns the source in which a provided DependencyObject is presented.

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

public:
[SecurityCriticalAttribute]
static PresentationSource^ FromDependencyObject(
	DependencyObject^ dependencyObject
)

Parameters

dependencyObject
Type: System.Windows::DependencyObject^

The DependencyObject to find the source for.

Return Value

Type: System.Windows::PresentationSource^

The PresentationSource in which the dependency object is being presented.

UIPermission

to call or implement this method. Associated enumeration: UIPermissionWindow::AllWindows.

.NET Framework
Available since 3.0
Return to top
Show: