KeyEventHandler Delegate

Definition

Represents the method that handles the KeyUp and KeyDown  events.

Equivalent WinUI delegate: Microsoft.UI.Xaml.Input.KeyEventHandler.

public delegate void KeyEventHandler(Platform::Object ^ sender, KeyRoutedEventArgs ^ e);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2086916837, 31246, 19986, 185, 106, 119, 21, 170, 111, 241, 200)]
/// [Windows.Foundation.Metadata.WebHostHidden]
class KeyEventHandler : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(2086916837, 31246, 19986, 185, 106, 119, 21, 170, 111, 241, 200)]
[Windows.Foundation.Metadata.WebHostHidden]
public delegate void KeyEventHandler(object sender, KeyRoutedEventArgs e);
Public Delegate Sub KeyEventHandler(sender As Object, e As KeyRoutedEventArgs)

Parameters

sender
Object

The object where the event handler is attached.

e
KeyRoutedEventArgs

The event data.

Inheritance
KeyEventHandler
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Applies to