PresentationSource.FromVisual(Visual) 方法

定义

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

public:
 static System::Windows::PresentationSource ^ FromVisual(System::Windows::Media::Visual ^ visual);
[System.Security.SecurityCritical]
public static System.Windows.PresentationSource FromVisual (System.Windows.Media.Visual visual);
public static System.Windows.PresentationSource FromVisual (System.Windows.Media.Visual visual);
[<System.Security.SecurityCritical>]
static member FromVisual : System.Windows.Media.Visual -> System.Windows.PresentationSource
static member FromVisual : System.Windows.Media.Visual -> System.Windows.PresentationSource
Public Shared Function FromVisual (visual As Visual) As PresentationSource

参数

visual
Visual

要查找其源的 Visual

返回

PresentationSource

正在其中呈现视觉效果的 PresentationSource;如果释放 visual,则为 null

属性

例外

visualnull

适用于