Compartilhar via


XRKeyEventArgs (Compact 2013)

3/28/2014

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

Syntax

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

Inheritance Hierarchy

XREventArgs

  XRRoutedEventArgs

    XRKeyEventArgs

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.
  • pSource
    Points to an IXRDependencyObject object that represents the source. This is the first object that raised the routed event. Inherited from XRRoutedEventArgs.
  • Size
    Indicates the size, in bytes, of this structure. Inherited from XREventArgs.

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

See Also

Reference

XAML for Windows Embedded Structures