Passwords in WP7

Posted by Richard Jones on Geeks with Blogs See other posts from Geeks with Blogs or by Richard Jones
Published on Mon, 22 Mar 2010 16:43:58 GMT Indexed on 2010/03/22 16:51 UTC
Read the original article Hit count: 539

Filed under:

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.

© Geeks with Blogs or respective owner