Share via


XRKeyEventArgs (Windows Embedded CE 6.0)

1/6/2010

This structure contains event data about a key-up or key-down event.

Syntax

struct XRKeyEventArgs : XRRoutedEventArgs{
  BOOL  Handled;
  UINT  PlatformKeyCode;
};

Members

  • Handled
    Indicates whether an event handler has handled this event. true if this event is handled and will not bubble up to the parent of the object; otherwise false.
  • PlatformKeyCode
    Indicates the platform key code, or virtual key (VK) code of the physical button that is pressed or released. For a list of standard VK codes, see Virtual Key Codes.

Inheritance Hierarchy

XREventArgs

  XRRoutedEventArgs

    XRKeyEventArgs

Remarks

A key event occurs when a user presses or releases a physical button. A virtual key on a screen does not raise a key event. An event handler uses the XRKeyEventArgs structure to determine which key event occurred. Then, the event handler can run the handler code for the particular button that raised the event.

.NET Framework Equivalent

System.Windows.Input.KeyEventArgs

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

Silverlight for Windows Embedded Structures