Exemplo n.º 1
0
 //图片随着密码正确性变化
 private void passwordChanging(PasswordBox sender, PasswordBoxPasswordChangingEventArgs args)
 {
     if (!UserManagement.GetInstance().isEdit&& instance.EncryptWithMD5(password.Password) == instance.MD5password)
     {
         click2.Visibility = Windows.UI.Xaml.Visibility.Visible;
     }
     else
     {
         click2.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
     }
 }
Exemplo n.º 2
0
 protected void Password_OnPasswordChanging(PasswordBox sender, PasswordBoxPasswordChangingEventArgs args)
 {
     //Remove all non numbers from password
     sender.Password = sender.Password.SanitizePin();
 }
 bool IPasswordBoxPasswordChangingEventArgsResolver.IsContentChanging(PasswordBoxPasswordChangingEventArgs e) => e.IsContentChanging;
Exemplo n.º 4
0
 private void password_PasswordChanging(PasswordBox sender, PasswordBoxPasswordChangingEventArgs args)
 {
 }
 /// <summary>
 /// Gets a value that indicates whether the event occurred due to a change in the text content.
 /// </summary>
 /// <param name="e">The requested <see cref="PasswordBoxPasswordChangingEventArgs"/>.</param>
 /// <returns><c>true</c> if a change to the text content caused the event; otherwise, <c>false</c>.</returns>
 public static bool IsContentChanging(this PasswordBoxPasswordChangingEventArgs e) => Resolver.IsContentChanging(e);