Mobile Line Of Business

Richard Jones (MVP)

  Home  |   Contact  |   Syndication    |   Login
  202 Posts | 0 Stories | 36 Comments | 0 Trackbacks

News

Welcome to the Mobile Line Of Business Blog

Tag Cloud


Archives

Post Categories

About

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

posted on Monday, March 22, 2010 11:43 AM