I have a WPF application written in .NET 4.6.1 used on tablets. When I focus a textbox, TabTip virtual keyboard is automatically invoked when:
- tablet mode is turned on and focus is made with touch or stylus
- tablet mode is turned off,
Show the touch keyboard when not in tablet mode and there's no keyboard attached
setting is turned on and focus is made with touch or stylus - tablet mode is turned off,
Show the touch keyboard when not in tablet mode and there's no keyboard attached
setting is turned off and focus is made with stylus (not with touch)
I need to disable this behavior.
So far I used following workaround to disable automatic keyboard invocation:
class MyTextBox : TextBox
{
protected override AutomationPeer OnCreateAutomationPeer()
{
return new FrameworkElementAutomationPeer(this);
}
}
Since Windows 10 version 1803 (April 2018 Update) - possibly even since 1709 (Fall Creators Update), but I cannot confirm that now - this doesn't work anymore and keyboard is always invoked.
Is there a way how can I prevent showing TabTip automatically in newest Windows 10 in my application?
Although it's not ideal (it affects whole system), I also tried to disable the Touch Keyboard and Handwriting Panel Service
as described here. But on 1803 the service keeps starting itself as soon as the keyboard is invoked, e.g. from taskbar button.