在我的 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">
它不起作用