Blog Stats
  • Posts - 132
  • Articles - 0
  • Comments - 28
  • Trackbacks - 0

 

Passwords in WP7

I’ve been trying to protect password entry boxes in Windows Phone 7 (on the emulator)

SilverLight supports inputscopes to achieve just this.

Peter Foot blogged about this too. 

http://mobileworld.appamundi.com/blogs/peterfoot/archive/2010/03/22/windows-phone-7-input.aspx?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+PeterFoot+%28Peter+Foot%29

It seems that password inputscope doesn’t quite work yet, please don’t pull your hair out like I just did..   This is the code I was using.

<TextBox Height="31" HorizontalAlignment="Left" Margin="240,99,0,0" Name="tbuser" Text="" VerticalAlignment="Top" Width="181" TabIndex="1" >
               <TextBox.InputScope>
                   <InputScope>
                       <InputScope.Names>
                           <InputScopeName NameValue="TelephoneNumber"/>
                       </InputScope.Names>
                   </InputScope>
               </TextBox.InputScope>
           </TextBox>

 

Other inputscopes like Telephonenumber work great.  Thought I would blog this to save you from a small bit of pain.

I’ve since solved this by using the PasswordBox control

image


Feedback

No comments posted yet.


Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

 

 

Copyright © Richard Jones