PresentationSource::FromDependencyObject Method (DependencyObject^)
.NET Framework (current version)
Returns the source in which a provided DependencyObject is presented.
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
Available since 3.0
Show: