FocusNavigationRequest.Create 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
焦点导航事件的原因。
返回
- 属性
适用于
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
用于标识最有可能接收导航焦点的候选焦点的边界矩形。
返回
- 属性
适用于
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。
返回
- 属性