共用方式為


FocusNavigationRequest.Create 方法

定義

多載

Create(FocusNavigationReason)

使用指定的 FocusNavigationReason 建立 FocusNavigationRequest 的實例。

Create(FocusNavigationReason, Rect)

使用指定的 FocusNavigationReason 和 hint Rect,建立 FocusNavigationRequest 的實例。

Create(FocusNavigationReason, Rect, Guid)

使用指定的 FocusNavigationReason、hint Rect唯一標識碼,建立 FocusNavigationRequest 的實例。

Create(FocusNavigationReason)

使用指定的 FocusNavigationReason 建立 FocusNavigationRequest 的實例。

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 和 hint 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、hint 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

起始焦點移動事件時所產生的唯一標識符。

傳回

FocusNavigationRequest 物件。

屬性

適用於