

The only disadvantage is that you as the developer have to ensure, that you use this modified version of TextBox control every time you need to get the right touch-based behavior. This solution is very simple and doesn’t require any “hacking” per-se. The touch keyboard is just a classic desktop application that lives on the path “C:\Program Files\Common Files\Microsoft Shared\Ink\TabTip.exe”. In this event we can manually start up the process of touch keyboard.

When the TextBox receives focus after the user enters it with touch, the GotTouchCapture event is called. String touchKeyboardPath = Files\Common Files\Microsoft Shared\Ink\TabTip.exe" Private void TouchEnabledTextBox_GotTouchCapture(object sender, e) This.GotTouchCapture += TouchEnabledTextBox_GotTouchCapture public class TouchEnabledTextBox : TextBox We will extend the TextBox control and change its behavior when it gets touch focus. To overcome the issues that come after disabling inking support in your WPF app, we can go with a simpler but less automatic solution. Any try to do touch panning only fires ItemClick events on the hovered items and the user needs to scroll using the small scroll bar and that is more than inconvenient. The disadvantage of this solution, that I discovered, is that it interferes with touch “panning” of ListBox controls.

This process is extremely well described here on Brian Lagunas’ blog and I encourage you to try it out.
KEYBOARD MAESTRO GESTURE TRIGGER EXAMPLE WINDOWS
You will need some COM import and call native Windows API. This requires us to turn off the inking support for our WPF app and actually force the system to behave the right way. The first solution is quite a bit of hacking. There are two different workarounds for this problem. For classic desktop apps the situation differs – TextBoxes don’t cause the touch keyboard to appear and the user has to open it manually. In WinRT apps, the touch keyboard shows up automatically when a text field gets focus so that the user can type without the need of a classic keyboard (no interrupting of her touch workflow). Windows Presentation Foundation (WPF) apps have a bit harder life in the touch-enabled world.
