XamlSourceFocusNavigationRequest 类

定义

提供有关 DesktopWindowXamlSource 对象的焦点请求的信息。

public ref class XamlSourceFocusNavigationRequest sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.UI.Xaml.Hosting.IXamlSourceFocusNavigationRequestFactory, 327680, "Microsoft.UI.Xaml.WinUIContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 327680)]
/// [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(Microsoft.UI.Xaml.Hosting.IXamlSourceFocusNavigationRequestFactory), 327680, "Microsoft.UI.Xaml.WinUIContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 327680)]
[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
属性

构造函数

XamlSourceFocusNavigationRequest(XamlSourceFocusNavigationReason)

根据指定的导航请求原因初始化 XamlSourceFocusNavigationRequest 对象的新实例。

XamlSourceFocusNavigationRequest(XamlSourceFocusNavigationReason, Rect)

初始化 XamlSourceFocusNavigationRequest 对象的新实例,以获取指定的导航请求原因和将接收导航焦点的边界矩形。

XamlSourceFocusNavigationRequest(XamlSourceFocusNavigationReason, Rect, Guid)

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

初始化 XamlSourceFocusNavigationRequest 对象的新实例,以获取指定的导航请求原因、将接收导航焦点的边界矩形以及请求的唯一相关 ID。

属性

CorrelationId

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

HintRect

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

Reason

获取 Windows.UI.Xaml.UIElement 如何在桌面应用程序中获得焦点,该应用程序使用 DesktopWindowXamlSource 对象托管基于 XAML 的 UI。

适用于