WPF密码框输入特殊字符的提示

时间:2019-06-26 05:25:16

标签: c# wpf

我的WPF密码框在输入特殊字符(*&^#$%)时会发出叮ding的声音。我不知道为什么会发生这种情况。这是代码。

 <PasswordBox Grid.Row="2" Name="Password"  Password="******" Margin="0,7,0,0" Padding="3,0,0,0"  Foreground="Gray"  VerticalContentAlignment="Center" Height="29" Width="230" HorizontalAlignment="Center" OpacityMask="LightGray" VerticalAlignment="Center" FontWeight="UltraLight" GotKeyboardFocus="OnPasswordBoxGotFocus"  LostKeyboardFocus="OnPasswordBoxLoastFocus" >

0 个答案:

没有答案