简体   繁体   中英

Open touch keyboard windows 10 on focus event TextBox | Universal App

i've a problem. I wanted a method to open touch keyboard on windows when the user click on TextBox on the wpf client.

So i've found this:

System.Diagnostics.Process.Start("TabTip.exe");

But I don't have a Process library on Windows universal app. My target is open automatically the keyboard when the textbox or text input is focused.

There is a solution for do this ? From C# code or WPF? exist a solution ?

My question it's not a duplicate of this , because i wanted to open/close automatically a touch keyboard every time a text input has focused.

Thanks

The title of your question makes it unclear, if your are asking about WPF or UWP. It works by default in UWP when your app is launched on touch device. On WPF its a little bit different. Lately, MS changes this behavior very often. Currently, this works in WPF by default on touch device, but only if your Window does not have WindowsStyle property set to None .

Edit: In UWP it works by default, but you have to bo on touch device. If you run your app in simulator, make sure you use touch mode. 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM