Share via


XamlSourceFocusNavigationRequest Klasse

Definition

Stellt Informationen zu einer Anforderung bereit, um einem DesktopWindowXamlSource-Objekt den Fokus zu verleihen.

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
Vererbung
Object Platform::Object IInspectable XamlSourceFocusNavigationRequest
Attribute

Windows-Anforderungen

Gerätefamilie
Windows Desktop Extension SDK (eingeführt in 10.0.17763.0)
API contract
Windows.UI.Xaml.Hosting.HostingContract (eingeführt in v3.0)

Konstruktoren

XamlSourceFocusNavigationRequest(XamlSourceFocusNavigationReason)

Initialisiert eine neue instance der XamlSourceFocusNavigationRequest-Klasse mit dem Grund für die Navigationsanforderung.

XamlSourceFocusNavigationRequest(XamlSourceFocusNavigationReason, Rect)

Initialisiert eine neue instance der XamlSourceFocusNavigationRequest-Klasse mit dem Grund für die Navigationsanforderung und dem umgebenden Rechteck, das den Navigationsfokus erhält.

XamlSourceFocusNavigationRequest(XamlSourceFocusNavigationReason, Rect, Guid)

Initialisiert eine neue instance der XamlSourceFocusNavigationRequest-Klasse mit dem Grund für die Navigationsanforderung, dem umgebenden Rechteck, das den Navigationsfokus empfängt, und der eindeutigen Korrelations-ID für die Anforderung.

Eigenschaften

CorrelationId

Ruft den eindeutigen Bezeichner für die Navigationsanforderung ab. Sie können diesen Wert für Protokollierungszwecke verwenden, oder wenn Sie über eine vorhandene Korrelations-ID aus einer laufenden Fokusbewegung verfügen, die bereits in Bearbeitung ist und Sie diese Fokusbewegung mit einer neuen Navigationsanforderung verbinden möchten.

HintRect

Ruft das umschließende Rechteck des Elements in der Desktopanwendung ab, das den Fokus verliert (d. a. das Element, das den Fokus hatte, bevor der DesktopWindowXamlSource-Fokus erhalten hat).

Reason

Ruft einen XamlSourceFocusNavigationReason-Wert ab, der den Grund für die Navigationsanforderung angibt.

Gilt für: