The TextBox control in Windows Phone 7 Silverlight inserts a period if you press SPACE twice. Is there any high-level way to stop this from happening, or am I going to have to muck about with KeyDown/KeyUp/TextChanged?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The behaviour of altering a double space (when entered in quick succession – like a double click) is dependent on the
InputScopeassigned to the TextBox.After a quick bit of experimentation I know it definitely doesn’t happen if you use an InputScope of
TelephoneNumberorChat.Be very careful if trying to alter this and consider the implications of altering standard behaviour. Consider using an InputScope which isn’t affected by this first.
If you must override this standard behaviour then you’ll also need to consider the frequency of entered characters.
Do you need to allow the user to enter a full stop and then multiple spaces? (possible gotcha/edge-case to consider)
If you must, I think you could implement the override by just using the TextChanged event.