Saturday, September 1, 2012

How hide info from my custom text box? (Windows Phone)

How hide info from my custom text box? (Windows Phone)

in my Windows Phone Application I have a login Page. When I put some text into Pass TextBox, the data should be hide with this symbols: "*". How can I hide info from my custom text box?

<ValidationControl:ValidationControl x:Name="txtPIN"  GotFocus="PinTextBox_GotFocus" Margin="0,0,45,0" TextWrapping="Wrap" ValidationContent="Please insert a valid id" LostFocus="PinBoxLostFocus" InputScope="Number" HorizontalAlignment="Right" Width="200"  MinWidth="220" MinHeight="80"  MaxLength="4" Foreground="Black" Background="#DEFFFFFF" ValidationRule="{StaticResource pinValidationRule}" TextChanged="txtPIN_TextChanged">                     <ValidationControl:ValidationControl.ValidationSymbol>                         <Image Source="img.png" Height="40" Width="40" />                     </ValidationControl:ValidationControl.ValidationSymbol>                 </ValidationControl:ValidationControl> 

UPDATE

 <ValidationControl:ValidationControl x:Name="txtPIN"  GotFocus="PinTextBox_GotFocus" Margin="0,0,45,0" TextWrapping="Wrap" ValidationContent="Please insert a valid id" LostFocus="PinBoxLostFocus" InputScope="Password" HorizontalAlignment="Right" Width="200"  MinWidth="220" MinHeight="80"  MaxLength="4" Foreground="Black" Background="#DEFFFFFF" ValidationRule="{StaticResource pinValidationRule}" TextChanged="txtPIN_TextChanged"> 

It doesn't work

Answers & Comments...

Answer: 1

U can use System.Security.SecureString to keep it encrypted..

by : 3692http://stackoverflow.com/users/1278338

Answer: 2

System.Security.SecureString is not available on the Windows Phone platform!

Just have a look at enter link description here

by : hfrmobilehttp://stackoverflow.com/users/254829




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog