Share via


ShortcutHandler Element

An event handler that provides shortcut command-input behavior to a UI object.

Syntax

<ShortcutHandler
    Command="ICommand object"
    Handle="{true | false}"
    HandlerStage="{Bubbled | Direct | Routed}"
    Shortcut="ShortcutHandlerCommand enumeration"
/>

Attributes

Command

Specifies an ICommand object that is associated with the shortcut handler. The invoke method for the command is called when a shortcut command event occurs.

Handle

Indicates whether the handler will allow the event to pass on to other event handlers after handling the event.

HandlerStage

A member of the InputHandlerStage enumeration indicating the stage in the event handling process when the event will be handled.

Shortcut

Shortcut command to handle events for. This value must be a member of the ShortcutHandlerCommand enumeration.

Public Instance Events

Event Description
Invoked Notification that is sent when the shortcut command is issued.

Remarks

The ShortcutHandler element can only respond to Record, ChannelUp, or ChannelDown mouse button events during live TV playback, even though you can trap these events from the remote control at any time.

Requirements

Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later

See Also