InputFocusNavigationHost Class

Definition

Enables an application that hosts a Content.ContentIsland to create and respond to requests for focus movement between the hosting application and the ContentIsland.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65541)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class InputFocusNavigationHost : InputObject
Inheritance
Object InputObject InputFocusNavigationHost
Attributes

Remarks

An InputFocusNavigationHost can only be called on the thread that it was created on. Attempting to use it from a different thread will cause RPC_E_WRONG_THREAD to be thrown.

An InputFocusNavigationHost is associated with a specific ContentSiteBridge. If the InputFocusNavigationHost is disposed then it loses that association and all event handlers are unregistered.

If the associated ContentSiteBridge is disposed, then the InputFocusNavigationHost associated with it is also implicitly disposed.

Properties

ContainsFocus

Gets whether the Content.ContentIsland corresponding to the associated ContentSiteBridge has focus.

DispatcherQueue

Gets the DispatcherQueue for the InputObject.

(Inherited from InputObject)

Methods

GetForSiteBridge(IContentSiteBridge)

Retrieves an InputFocusNavigationHost associated with the specified ContentSiteBridge.

NavigateFocus(FocusNavigationRequest)

Tells the Content.ContentIsland corresponding to the associated ContentSiteBridge to raise its InputFocusController.NavigateFocusRequested event.

Events

Applies to

Product Versions
Windows App SDK 1.5, 1.6