共用方式為


XamlSourceFocusNavigationRequest 類別

定義

提供將焦點提供給 DesktopWindowXamlSource 物件之要求的相關資訊。

public ref class XamlSourceFocusNavigationRequest sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.UI.Xaml.Hosting.IXamlSourceFocusNavigationRequestFactory, 196608, "Windows.UI.Xaml.Hosting.HostingContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.UI.Xaml.Hosting.HostingContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class XamlSourceFocusNavigationRequest final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.UI.Xaml.Hosting.IXamlSourceFocusNavigationRequestFactory), 196608, "Windows.UI.Xaml.Hosting.HostingContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.UI.Xaml.Hosting.HostingContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class XamlSourceFocusNavigationRequest
Public NotInheritable Class XamlSourceFocusNavigationRequest
繼承
Object Platform::Object IInspectable XamlSourceFocusNavigationRequest
屬性

Windows 需求

裝置系列
Windows Desktop Extension SDK (已於 10.0.17763.0 引進)
API contract
Windows.UI.Xaml.Hosting.HostingContract (已於 v3.0 引進)

建構函式

XamlSourceFocusNavigationRequest(XamlSourceFocusNavigationReason)

使用導覽要求的原因,初始化 XamlSourceFocusNavigationRequest 類別的新實例。

XamlSourceFocusNavigationRequest(XamlSourceFocusNavigationReason, Rect)

初始化 XamlSourceFocusNavigationRequest 類別的新實例,其中包含導覽要求的原因,以及將接收流覽焦點的周框。

XamlSourceFocusNavigationRequest(XamlSourceFocusNavigationReason, Rect, Guid)

初始化 XamlSourceFocusNavigationRequest 類別的新實例,其中包含導覽要求的原因、將接收流覽焦點的周框,以及要求的唯一相互關聯識別碼。

屬性

CorrelationId

取得巡覽要求的唯一識別碼。 您可以將此值用於記錄用途,或者,如果您有來自進行中焦點移動的現有相互關聯識別碼,而且您想要將該焦點移動與新的流覽要求連接。

HintRect

取得傳統型應用程式中失去焦點 (專案的周框矩形,也就是 DesktopWindowXamlSource 之前取得焦點的專案) 。

Reason

取得 XamlSourceFocusNavigationReason 值,指出流覽要求的原因。

適用於