2

I've designed a Windows 8 store application to use a custom keyboard for my input as the built-in keyboard didn't match my requirements.

So is there anyway to stop the built in keyboard displaying when a textbox is entered?

I can do this via services in windows but I still need the built in keyboard for use in Windows itself. So I need to stop the keyboard appearing in the application. Any ideas how I can do this?

Thanks

Sun
  • 4,458
  • 14
  • 66
  • 108
  • No, you can't: http://stackoverflow.com/questions/18745090/disable-on-screen-keyboard – crea7or Mar 31 '14 at 13:06
  • Are you sure that input scopes didn't fit your needs? – crea7or Mar 31 '14 at 13:13
  • 2
    I think you can use some element looks like textbox. for example, textblock in a border with borderbrush, when tapped it, your custom keyboard display, and when your keyboard keys tapped. textblock display the text. – Chris Shao Apr 01 '14 at 04:41

1 Answers1

1

I have found a solution. try this.

When the textbox that showed the virtual keyboard has it’s property IsEnabled set to false, the virtual keyboard disappears. We can immediately set is to true after that and the virtual keyboard will remain hidden. Just like this:

MyTextBox.KeyDown += (s, a) => {
    if (a.Key == VirtualKey.Enter) {
        MyTextBox.IsEnabled = false;
        MyTextBox.IsEnabled = true;
    }
};
ChrisF
  • 134,786
  • 31
  • 255
  • 325
Rashad Valliyengal
  • 3,132
  • 1
  • 25
  • 39