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)

使用导航请求的原因、将接收导航焦点的边框以及请求的唯一相关 ID 初始化 XamlSourceFocusNavigationRequest 类的新实例。

属性

CorrelationId

获取导航请求的唯一标识符。 可以使用此值进行日志记录,或者,如果某个正在进行的焦点移动已有一个关联 ID,并且你想要将焦点移动与新的导航请求连接,则可以使用此值。

HintRect

获取桌面应用程序中失去焦点的元素的边框, (即 DesktopWindowXamlSource 接收焦点) 之前具有焦点的元素。

Reason

获取一个 XamlSourceFocusNavigationReason 值,该值指示导航请求的原因。

适用于