FocusNavigationRequest 类

定义

提供有关焦点导航事件的详细信息。

public ref class FocusNavigationRequest sealed
/// [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 FocusNavigationRequest final
[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 FocusNavigationRequest
Public NotInheritable Class FocusNavigationRequest
继承
Object Platform::Object IInspectable FocusNavigationRequest
属性

注解

此对象在 InputFocusControllerInputFocusNavigationHost 焦点导航事件的 FocusNavigationRequestEventArgs 中传递。

属性

CorrelationId

获取启动焦点移动事件时生成的唯一 ID。

HintRect

获取用于标识最有可能接收导航焦点的候选焦点的边框。

Reason

获取焦点导航事件的原因。

方法

Create(FocusNavigationReason)

使用指定的 FocusNavigationReason 创建 FocusNavigationRequest 的实例。

Create(FocusNavigationReason, Rect)

使用指定的 FocusNavigationReason 和提示 Rect 创建 FocusNavigationRequest 的实例。

Create(FocusNavigationReason, Rect, Guid)

使用指定的 FocusNavigationReason、提示 Rect唯一标识符创建 FocusNavigationRequest 的实例。

适用于