Share via


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.

public ref class InputFocusNavigationHost sealed : InputObject
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65541)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class InputFocusNavigationHost final : InputObject
[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
Public NotInheritable Class InputFocusNavigationHost
Inherits InputObject
Inheritance
Object Platform::Object IInspectable 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

DepartFocusRequested

Occurs when InputFocusController.DepartFocus(Microsoft.UI.Input.FocusNavigationRequest) is called on a Content.ContentIsland corresponding to the associated ContentSiteBridge.

Applies to