FocusNavigationRequest.Create 方法

定义

重载

Create(FocusNavigationReason)

使用指定的 FocusNavigationReason 创建 FocusNavigationRequest 实例

Create(FocusNavigationReason, Rect)

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

Create(FocusNavigationReason, Rect, Guid)

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

Create(FocusNavigationReason)

public:
 static FocusNavigationRequest ^ Create(FocusNavigationReason reason);
/// [Windows.Foundation.Metadata.Overload("Create")]
 static FocusNavigationRequest Create(FocusNavigationReason const& reason);
[Windows.Foundation.Metadata.Overload("Create")]
public static FocusNavigationRequest Create(FocusNavigationReason reason);
function create(reason)
Public Shared Function Create (reason As FocusNavigationReason) As FocusNavigationRequest

参数

reason
FocusNavigationReason

焦点导航事件的原因。

返回

FocusNavigationRequest 对象。

属性

适用于

Create(FocusNavigationReason, Rect)

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

public:
 static FocusNavigationRequest ^ Create(FocusNavigationReason reason, Rect hintRect);
/// [Windows.Foundation.Metadata.Overload("CreateWithHintRect")]
 static FocusNavigationRequest Create(FocusNavigationReason const& reason, Rect const& hintRect);
[Windows.Foundation.Metadata.Overload("CreateWithHintRect")]
public static FocusNavigationRequest Create(FocusNavigationReason reason, Rect hintRect);
function create(reason, hintRect)
Public Shared Function Create (reason As FocusNavigationReason, hintRect As Rect) As FocusNavigationRequest

参数

reason
FocusNavigationReason

焦点导航事件的原因。

hintRect
Rect

用于标识最有可能接收导航焦点的候选焦点的边界矩形。

返回

FocusNavigationRequest 对象。

属性

适用于

Create(FocusNavigationReason, Rect, Guid)

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

public:
 static FocusNavigationRequest ^ Create(FocusNavigationReason reason, Rect hintRect, Platform::Guid correlationId);
/// [Windows.Foundation.Metadata.Overload("CreateWithHintRectAndId")]
 static FocusNavigationRequest Create(FocusNavigationReason const& reason, Rect const& hintRect, winrt::guid const& correlationId);
[Windows.Foundation.Metadata.Overload("CreateWithHintRectAndId")]
public static FocusNavigationRequest Create(FocusNavigationReason reason, Rect hintRect, Guid correlationId);
function create(reason, hintRect, correlationId)
Public Shared Function Create (reason As FocusNavigationReason, hintRect As Rect, correlationId As Guid) As FocusNavigationRequest

参数

reason
FocusNavigationReason

焦点导航事件的原因。

hintRect
Rect

用于标识最有可能接收导航焦点的候选焦点的边界矩形。

correlationId
Guid

Platform::Guid

winrt::guid

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

返回

FocusNavigationRequest 对象。

属性

适用于