2

当我尝试使用 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>
4

1 回答 1

1

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

于 2012-04-12T03:35:35.323 回答