-api-id | -api-type |
---|---|
M:Microsoft.UI.Input.InputFocusController.GetForIsland(Microsoft.UI.Content.ContentIsland) |
winrt method |
Retrieves an xref:Microsoft.UI.Input.InputFocusController object for the specified ContentIsland.
The ContentIsland that is handling input.
The xref:Microsoft.UI.Input.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.
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 xref:Microsoft.UI.Input.InputFocusController associated with a particular content island.