Hi,
>> But in some machine, the keyboard always not open, Why?
You can also try TabTip.exe
string progFiles = @"C:\Program Files\Common Files\Microsoft Shared\ink";
string keyboardPath = System.IO.Path.Combine(progFiles, "TabTip.exe");
System.Diagnostics.Process.Start(keyboardPath);
If these is not working because some reasons, I recommend you use custom keyboard, you can
integrate the
keyboard in to your WPF Application directly.
http://wpfkb.codeplex.com/
https://www.codeproject.com/Articles/32568/A-Touch-Screen-Keyboard-Control-in-WPF
https://code.msdn.microsoft.com/windowsapps/Enabling-Windows-8-Touch-7fb4e6de
>>what is best way to open the keyboard in WPF application on Tablet Mode? Thanks in advance.
As far as I know, Soft Keyboard Support add in .NET Framework 4.6.2 , Soft Keyboard support enables automatic invocation and dismissal of the touch keyboard in WPF applications without disabling WPF stylus/touch support on Windows 10.
See:
https://blogs.msdn.microsoft.com/dotnet/2016/08/02/announcing-net-framework-4-6-2/
TWO points you must note.
1. Install NET Framework 4.6.2 or later.
2. OS must be Windows 10 Anniversary or later.
you can check this blog:
http://blog.mzikmund.com/2015/09/how-to-show-touch-keyboard-on-touch-interaction-with-wpf-textboxes/
Best Regards,
Bob
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.