InputFocusNavigationHost Class
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.
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
- 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. |