KeyEventHandler 委托

定义

表示处理 KeyUpKeyDown 事件的方法。

public delegate void KeyEventHandler(Platform::Object ^ sender, KeyRoutedEventArgs ^ e);
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(3681085388, 39467, 21117, 153, 137, 37, 40, 77, 172, 204, 3)]
public delegate void KeyEventHandler(object sender, KeyRoutedEventArgs e);
Public Delegate Sub KeyEventHandler(sender As Object, e As KeyRoutedEventArgs)

参数

sender
Object

Platform::Object

事件处理程序所附加到的对象。

e
KeyRoutedEventArgs

事件数据。

属性

适用于