PresentationSource.FromVisual(Visual) PresentationSource.FromVisual(Visual) PresentationSource.FromVisual(Visual) Method

Definition

Returns the source in which a provided Visual is presented.

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);
static member FromVisual : System.Windows.Media.Visual -> System.Windows.PresentationSource
Parameters
visual
Visual Visual Visual

The Visual to find the source for.

Returns

The PresentationSource in which the visual is being presented, or null if visual is disposed.

Exceptions

Security

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

Applies to