Show & hiding the Windows 8 on screen keyboard from WPF

后端 未结 8 1743
我寻月下人不归
我寻月下人不归 2020-12-03 08:17

I\'m writing a WPF application for a Windows 8 tablet. It\'s full windows 8 and not ARM/RT.

When the user enters a textbox I show the on screen keyboard using the fo

8条回答
  •  长情又很酷
    2020-12-03 08:57

    I am not sure how to hide the keyboard programmatically, but just as you know I just recently published a sample on how to trigger (as-in, show) the touch keyboard in WPF applications when a user clicks into a Textbox, its here:

    http://code.msdn.microsoft.com/Enabling-Windows-8-Touch-7fb4e6de

    The cool thing about this sample, as it doesn't require the use of Process and instead uses supported Windows 8 API to trigger the touch keyboard for TextBox controls using automation.

    It has been something I've been working on for many months, i'm glad to finally contribute this example to our community. Please let me know if there are any questions, suggestions, problems, etc in the sample Q&A pane

提交回复
热议问题