共用方式為


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

屬性

適用於