Method ListenWhenKeyDown
ListenWhenKeyDown(Window)
Creates an observable sequence that emits KeyEventArgs when a key is pressed in the Window.
Declaration
public static IObservable<KeyEventArgs> ListenWhenKeyDown(this Window window)
Parameters
Type | Name | Description |
---|---|---|
Window | window | The Window to observe for key down events. |
Returns
Type | Description |
---|---|
IObservable<KeyEventArgs> | An observable sequence of KeyEventArgs for key down events in the Window. |