IWpfKeyboardTrackingService.BeginTrackingKeyboard(IntPtr, IList<UInt32>) IWpfKeyboardTrackingService.BeginTrackingKeyboard(IntPtr, IList<UInt32>) IWpfKeyboardTrackingService.BeginTrackingKeyboard(IntPtr, IList<UInt32>) IWpfKeyboardTrackingService.BeginTrackingKeyboard(IntPtr, IList<UInt32>) Method

Definition

Starts tracking the keyboard. Once called, all keyboard events will be routed to WPF first, before the host application sees them.

public:
 void BeginTrackingKeyboard(IntPtr handle, System::Collections::Generic::IList<System::UInt32> ^ messagesToCapture);
public void BeginTrackingKeyboard (IntPtr handle, System.Collections.Generic.IList<uint> messagesToCapture);
abstract member BeginTrackingKeyboard : nativeint * System.Collections.Generic.IList<uint32> -> unit
Public Sub BeginTrackingKeyboard (handle As IntPtr, messagesToCapture As IList(Of UInteger))
Parameters
handle
IntPtr IntPtr IntPtr IntPtr

A valid Win32 window handle (HWND) to which messages should be redirected

messagesToCapture
IList<UInt32>

A list of Win32 messages to redirect to the specified window handle

Remarks

After this method has been called, all keyboard events will be routed to WPF first, before the host application (for example, Visual Studio) sees them.

Applies to