Sun
Sun

Reputation: 4718

Stop Windows 8 keyboard displaying when entering textbox in windows 8 store application

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

Upvotes: 2

Views: 945

Answers (1)

Rashad Valliyengal
Rashad Valliyengal

Reputation: 3162

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;
    }
};

Upvotes: 1

Related Questions