FocusManagerGotFocusEventArgs 类

定义

GotFocus 事件提供数据。

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
继承
Object Platform::Object IInspectable FocusManagerGotFocusEventArgs
属性

Windows 要求

设备系列
Windows 10, version 1809 (在 10.0.17763.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v7.0 中引入)

注解

建议尽可能使用 UIElement 焦点路由事件而不是 FocusManager 事件。

属性

CorrelationId

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

NewFocusedElement

获取最近聚焦的元素。

适用于

另请参阅