IWpfKeyboardTrackingService.BeginTrackingKeyboard Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
nativeint
A valid Win32 window handle (HWND) to which messages should be redirected
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.