Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 1.27 KB

inputfocuscontroller_getforisland_618747298.md

File metadata and controls

38 lines (22 loc) · 1.27 KB
-api-id -api-type
M:Microsoft.UI.Input.InputFocusController.GetForIsland(Microsoft.UI.Content.ContentIsland)
winrt method

Microsoft.UI.Input.InputFocusController.GetForIsland(Microsoft.UI.Content.ContentIsland)

-description

Retrieves an xref:Microsoft.UI.Input.InputFocusController object for the specified ContentIsland.

-parameters

-param island

The ContentIsland that is handling input.

-returns

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.

-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 xref:Microsoft.UI.Input.InputFocusController associated with a particular content island.

-see-also

-examples