PresentationSource.FromDependencyObject(DependencyObject) 方法

定义

返回要在其中呈现所提供的 DependencyObject 的源。

public:
 static System::Windows::PresentationSource ^ FromDependencyObject(System::Windows::DependencyObject ^ dependencyObject);
[System.Security.SecurityCritical]
public static System.Windows.PresentationSource FromDependencyObject (System.Windows.DependencyObject dependencyObject);
public static System.Windows.PresentationSource FromDependencyObject (System.Windows.DependencyObject dependencyObject);
[<System.Security.SecurityCritical>]
static member FromDependencyObject : System.Windows.DependencyObject -> System.Windows.PresentationSource
static member FromDependencyObject : System.Windows.DependencyObject -> System.Windows.PresentationSource
Public Shared Function FromDependencyObject (dependencyObject As DependencyObject) As PresentationSource

参数

dependencyObject
DependencyObject

要查找其源的 DependencyObject

返回

PresentationSource

要在其中显示依赖项对象的 PresentationSource

属性

适用于