-1

在我的 Windows Phone 应用程序中,我有一个登录页面。当我将一些文本放入 PassTextBox时,数据应该用这个符号隐藏:“*”。如何隐藏自定义文本框中的信息?

<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>

更新

 <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">

它不起作用

4

2 回答 2

0

System.Security.SecureString在 Windows Phone 平台上不可用!

看看SecureString 类

于 2012-08-31T09:38:11.950 回答
0

你可以用System.Security.SecureString它来保持加密..

于 2012-04-09T11:49:06.843 回答