Table of Contents

Method OnKeyDown

Namespace
UICatalog.Scenarios
Assembly
UICatalog.dll

OnKeyDown(Key)

Called when the user presses a key, allowing subscribers to pre-process the key down event. Called before key bindings are invoked and KeyDownNotHandled is raised. Set Handled to true to stop the key from being processed further.

protected override bool OnKeyDown(Key e)

Parameters

e Key

Returns

bool

false if the key down event was not handled. true if the event was handled and processing should stop.

Remarks

For processing HotKeys and commands, use Command and Add(Key, params Command[])instead.

Fires the KeyDown event.