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