Show & hiding the Windows 8 on screen keyboard from WPF

后端 未结 8 1740
我寻月下人不归
我寻月下人不归 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:59

    I open-sourced my project to automate everything concerning TabTip integration in WPF app.

    You can get it on nuget, and after that all you need is a simple config in your apps startup logic:

    TabTipAutomation.BindTo();
    

    You can bind TabTip automation logic to any UIElement. Virtual Keyboard will open when any such element will get focus, and it will close when element will lose focus. Not only that, but TabTipAutomation will move UIElement (or Window) into view, so that TabTip will not block focused element.

    For more info refer to the project site.

提交回复
热议问题