Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IWpfKeyboardTrackingService Interface
Collapse the table of content
Expand the table of content

IWpfKeyboardTrackingService Interface

Defines a MEF service responsible for tracking the keyboard in hosts of the WPF editor.

This API is not CLS-compliant. 

Namespace:  Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

[CLSCompliantAttribute(false)]
public interface IWpfKeyboardTrackingService

The IWpfKeyboardTrackingService type exposes the following members.

  NameDescription
Public methodBeginTrackingKeyboardStarts tracking the keyboard.
Public methodEndTrackingKeyboardStops tracking the keyboard.
Top

Keyboard tracking is necessary because some hosts, such as VisualStudio, do their own keyboard handling, causing inconsistent behavior with WPF elements even when they have keyboard focus. By tracking the keyboard, all keyboard events will be routed to WPF first, giving focused WPF controls a chance to handle keyboard events in a consistent manner.

Show:
© 2015 Microsoft