InputScope类型NumericPassword在我的情况下不起作用

时间:2012-04-09 12:06:10

标签: c# silverlight windows-phone-7 silverlight-4.0 silverlight-3.0

当我尝试使用InputScope类型NumericPassword时?它不会隐藏输入日期:

http://msdn.microsoft.com/en-us/library/system.windows.input.inputscopenamevalue%28v=vs.95%29.aspx

这是我的代码:

   <ValidationControl:ValidationControl x:Name="txtPIN"  GotFocus="PinTextBox_GotFocus" Margin="0,0,45,0" TextWrapping="Wrap" ValidationContent="Please insert a valid id" LostFocus="PinBoxLostFocus" InputScope="NumericPassword" 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>

1 个答案:

答案 0 :(得分:1)

它对我有用,验证控制用户控件是什么?首先尝试使用简单的文本框控件,看看它是否有效。