Reputation: 2152
Is it possible to disable swipe keyboard in TextBox just like PasswordBox does.
Upvotes: 1
Views: 216
Reputation: 12019
Not necessarily the best solution, but playing with the InputScope
might get you what you want. For example, this won't allow the shape-writing keyboard:
<TextBox InputScope="NameOrPhoneNumber"/>
The list of possible InputScope
values can be found here.
[Edit: Updated for XAML]
Upvotes: 1
Reputation: 284
Found a workaround.
Add a textbox (and delete the text in it)
Add a passwordbox on The textbox
Set the passwordboxes opacity to 0%
Make a passwordchanged trigger on The passwordbox (double click on passwordbox does the same) and write a code on that sets the text of The textbox to The passwordboxes password (add names to The passwordbox and textbox before this)
You must be done!
I hope I helped you.
Upvotes: 1
Reputation: 89
I Think it's impossible to disable swipe keyboard in textBox but you can disable it from phone settings (Settings -> Keyboard -> tap your keyboard language -> uncheck "Type as I swipe through letters").
Upvotes: 0