ContentIsland.GetByVisual(Visual) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.