0
votes

I am currently working in a UWP application. I have a situation where I need to open the taptip keyboard. The device needs to be in desktop mode and the keyboard should open on a button click. Is there any way I can achieve this functionality?

  • I know it works fine in tablet mode when a text box gets focus but I need to get it done in desktop mode and on a button click.
  • I know it can be done from a console application using System.Diagnostics.Process but I need a way around for uwp app.
1
Raymond's blog entry was for Windows 8 desktop apps. It doesn't apply to Windows 10 or UWP apps..Rob Caplan - MSFT
@RobCaplan: Ah, true, that one is Windows 8 only. I keep forgetting that sustained support is no longer on Microsoft's list of priorities. A pity, really.IInspectable

1 Answers

1
votes

The user can enable the tip to show when a text box gets focus in a desktop app by setting the "Show the touch keyboard when not in tablet mode and there's no keyboard attached". Apps should generally defer to the user's preferences on this rather than trying to override this themselves.

That said, you can show and hide the InputPane via the InputPane.TryShow and InputPane.TryHide methods.

You'll do essentially the same from a desktop app via the IInputPaneInterop and IInputPane2 interfaces. Launching tabtip.exe explicitly is limited and not generally recommended.