PresentationSource.FromVisual(Visual) Método

Definición

Devuelve el origen en el que se presenta el objeto Visual especificado.Returns the source in which a provided Visual is presented.

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

Parámetros

visual
Visual

Objeto Visual cuyo origen se va a buscar.The Visual to find the source for.

Devoluciones

PresentationSource

PresentationSource en que se presenta el elemento visual, o null si se elimina visual.The PresentationSource in which the visual is being presented, or null if visual is disposed.

Atributos

Excepciones

visual es null.visual is null.

Se aplica a