Share via


KeyCommandEventHandler Delegate

Represents the method that will handle the key and command events.

  public delegate bool KeyCommandEventHandler(
  Object sender, 
  KeyCommandEventArgs e
);

Parameters

sender

System.Object.  The source of the event.

e

KeyCommandEventArgs.  A KeyCommandEventArgs that contains the event data.

Remarks

When you create a KeyCommandEventHandler delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.

Requirements

Reference: Microsoft.MediaCenter.ITVVM

Namespace: Microsoft.MediaCenter.TVVM

Assembly: Microsoft.MediaCenter.ITVVM.dll

Platform: Windows 7

See Also