InputFocusController.GetForIsland(ContentIsland) 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 an InputFocusController object for the specified ContentIsland.
public:
static InputFocusController ^ GetForIsland(ContentIsland ^ island);
static InputFocusController GetForIsland(ContentIsland const& island);
public static InputFocusController GetForIsland(ContentIsland island);
function getForIsland(island)
Public Shared Function GetForIsland (island As ContentIsland) As InputFocusController
Parameters
- island
- ContentIsland
The ContentIsland that is handling input.
Returns
The InputFocusController object for the specified ContentIsland, or a new InputFocusController if one doesn't exist.
If island is invalid, or is owned by a different thread than the calling thread (RPC_E_WRONG_THREAD is thrown), GetForIsland returns null.
Remarks
GetForIsland only supports content islands on the same thread as the caller.
Calling GetForIsland multiple times will return the same object each time.
In all cases there can only be a single InputFocusController associated with a particular content island.