Compartir a través de


ContentIsland.GetByVisual(Visual) Method

Definition

Retrieves the ContentIsland that contains the specified child visual object on the current thread.

public:
 static ContentIsland ^ GetByVisual(Visual ^ child);
 static ContentIsland GetByVisual(Visual const& child);
public static ContentIsland GetByVisual(Visual child);
function getByVisual(child)
Public Shared Function GetByVisual (child As Visual) As ContentIsland

Parameters

child
Visual

The child visual object.

Returns

the ContentIsland that contains the specified child visual object, or null if the content island is not a parent of the visual object.

If the visual passed in is not associated with the current thread, RPC_E_WRONGTHREAD will be returned.

Applies to