Returns the source in which a provided Visual is presented.
Public Shared Function FromVisual ( _ visual As Visual _ ) As PresentationSource
public static PresentationSource FromVisual( Visual visual )
public: static PresentationSource^ FromVisual( Visual^ visual )
static member FromVisual : visual:Visual -> PresentationSource
visual is nullNothingnullptra null reference (Nothing in Visual Basic).
to call or implement this method. Associated enumeration: UIPermissionWindow..::.AllWindows.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2