Art
Art

Reputation: 24567

Remove decimal point from on-screen keyboard

According to this document, numeric keypad on Windows Phone OS 7.1 is ought to have "." - decimal point.

Is there a way to remove the decimal point from keyboard, leaving only numbers and Backspace sign?

Upvotes: 0

Views: 508

Answers (3)

Rich Hopkins
Rich Hopkins

Reputation: 1891

Use the TextChanged event to check for the period and ignore it.

Upvotes: 0

Matt Lacey
Matt Lacey

Reputation: 65564

Rather than attempt to modify the built in keyboards (which you can't do) or attempt to create a custom keyboard (which is a lot of work to accurately recreate the native experience) you'll probably find it much simpler to just ignore the characters you don't want displayed.

Upvotes: 1

earthling
earthling

Reputation: 5264

There isn't a way to customize the soft input panel further than the various InputScopes. You could, however attempt to simulate the SIP, but that seems like a lot of extra work just to avoid the ".".

Here is one example that might be of help if you choose to go this route: http://www.silverlightshow.net/items/Windows-Phone-7-Creating-Custom-Keyboard.aspx

Upvotes: 1

Related Questions