A delegate: the handler type of an event.
Signature: void KeyDown(BaseElement sender, KeyDownEventArgs e)
| Parameter | Type | Description |
|---|---|---|
sender |
BaseElement |
The element that raised the event. |
e |
KeyDownEventArgs |
The pressed key. Set e.Handled so the element’s parents don’t get it. |
Handles BaseElement.OnKeyDown.