Skip to content

UIElement.KeyDown event

Occurs when a key is pressed while the element has focus; marking it handled also drops the text input the keystroke would produce.

public event Action<KeyEventArgs>? KeyDown;

Fluent: .OnKeyDown(Action<KeyEventArgs>)