Language

ContentIsland.GetBySystemVisual(Visual) Method

Definition

Retrieves a ContentIsland object where the specified system (Windows.UI.Composition) Visual is the root system Visual or a descendant of the root system Visual.

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

Parameters

child
Visual

The root system Visual or a descendant of the root system Visual.

Returns

The ContentIsland where the specified system Visual is the root system Visual or a descendant of the root system Visual, or null if the content island is neither.

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

Remarks

Use this method when working with a system Visual (Windows.UI.Composition.Visual). When working with a **Microsoft**.UI.Composition.Visual, use the GetByVisual method.

Applies to