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.
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. |
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).
CSharpUtilities::RoutedKeyEventArgs::RoutedKeyEventArgs | ( | KeyEvent | aEvent, |
KeyEventArgs | e | ||
) | [inline] |
Constructor taking an event enum value and event args value.
aEvent | The key event type for this routed event. |
e | Arguments passed to event listeners. |
KeyEvent CSharpUtilities::RoutedKeyEventArgs::Event
[get] |
The key event type for this routed event.
KeyEventArgs
CSharpUtilities::RoutedKeyEventArgs::EventArgs
[get] |
Event arguments intended for event listeners.