FocusManagerGotFocusEventArgs Class

Definition

Provides data for the GotFocus event.

Equivalent WinUI class: Microsoft.UI.Xaml.Input.FocusManagerGotFocusEventArgs.

public ref class FocusManagerGotFocusEventArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class FocusManagerGotFocusEventArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class FocusManagerGotFocusEventArgs
Public NotInheritable Class FocusManagerGotFocusEventArgs
Inheritance
FocusManagerGotFocusEventArgs
Attributes

Windows 10 requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

We recommend using the UIElement focus routed events instead of FocusManager events whenever possible.

Properties

CorrelationId

Gets the unique ID generated when a focus movement event is initiated.

Equivalent WinUI property: Microsoft.UI.Xaml.Input.FocusManagerGotFocusEventArgs.CorrelationId.

NewFocusedElement

Gets the most recent focused element.

Equivalent WinUI property: Microsoft.UI.Xaml.Input.FocusManagerGotFocusEventArgs.NewFocusedElement.

Applies to

See also