共用方式為


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)

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

初始化 XamlSourceFocusNavigationRequest 物件的新實例,因為指定的流覽要求原因、將接收瀏覽焦點的周框,以及要求的唯一相互關聯標識符。

屬性

CorrelationId

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

HintRect

取得周框,用來識別最有可能接收瀏覽焦點的焦點候選專案。

Reason

取得 Windows.UI.Xaml.UIElement 如何在使用 DesktopWindowXamlSource 物件來裝載 XAML 型 UI 的桌面應用程式中取得焦點。

適用於