windows-phone-7passwordsinputscope

Change input scope for Password text boxes on Windows Phone 7


How can you do the equivalent of changing the input scope on the password text boxes in WP7? They don't have an input scope field so I'm not sure how to do it.

I'd like to have a password box where you can only use digits as your password, like the phone lock screen.

Thanks


Solution

  • There is no way to set the inputscope of the PasswordBox. If you really must do this you'll have to create your own control.

    If making your own version of the phone lock screen I'd recommend looking at using a TextBlock and a number (12) of Buttons rather than a PasswordBox or TextBox.