CSharpUtilities::RoutedKeyEventArgs Class Reference


Detailed Description

Encapsulates arguments for KeyDown, KeyUp and KeyPress .NET events for events that may �bubble up� the source component's parent chain.

This is simply a convenience class whose main role is to allow for the exposure of multiple key events via a single event. This helps in situations where we're interested in bubbling up all significant key events without having to expose three new events on each parent component through which the bubbling occurs.

List of all members.

Public Types

enum   KeyEvent { KeyDown = 0x0100, KeyUp = 0x0101, KeyPress = 0x0102 }
 

Corresponds to the KeyUp, KeyDown and KeyPress events in the Win32 API.

More...

Public Member Functions

  RoutedKeyEventArgs (KeyEvent aEvent, KeyEventArgs e)
  Constructor taking an event enum value and event args value.

Properties

KeyEvent  Event [get]
  The key event type for this routed event.
KeyEventArgs  EventArgs [get]
  Event arguments intended for event listeners.

Member Enumeration Documentation

Corresponds to the KeyUp, KeyDown and KeyPress events in the Win32 API.

These enum values have purposefully been set to match the corresponding Windows Message values (WM_KEYDOWN, WM_KEYUP, and WM_CHAR).

Enumerator:
KeyDown 

Key Down event bit mask.

KeyUp 

Key Up event bit mask.

KeyPress 

Key Press bit mask (Down and then Up).


Constructor & Destructor Documentation

CSharpUtilities::RoutedKeyEventArgs::RoutedKeyEventArgs ( KeyEvent  aEvent,
KeyEventArgs  e 
) [inline]

Constructor taking an event enum value and event args value.

Parameters:
aEvent The key event type for this routed event.
e Arguments passed to event listeners.

Property Documentation

KeyEvent CSharpUtilities::RoutedKeyEventArgs::Event [get]

The key event type for this routed event.

KeyEventArgs CSharpUtilities::RoutedKeyEventArgs::EventArgs [get]

Event arguments intended for event listeners.


CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs
CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs CSharpUtilities::RoutedKeyEventArgs